Git Product home page Git Product logo

react-native-apay's People

Contributors

dependabot[bot] avatar isokolovskii avatar matwming avatar sorokin0andrey avatar thorsteinsson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-native-apay's Issues

PaymentMethod data is missing

Hi I am integrating Payfort payment gateway but for some reason, the following data from the example do not come to me, they do not exist at all. Also, Checking on a real device. No errors occur

What is missing in the response from apple pay is paymentMethod

// paymentMethod example 
{ 
"paymentMethod": { "network": "MasterCard", "type": "credit", "displayName": "MasterCard 4248"

}

What comes to me:

'{
"paymentData": {
"version": "EC_v1",
"data": "string",
"signature": "string",
"header": {
"ephemeralPublicKey": "string",
"publicKeyHash": "string",
"transactionId": "string"
}
},
"transactionIdentifier": "string"
}  

Do you know what should I do to get paymentMethod ?
Thanks for the fixes

TypeError null is not an object (evaluating 'K.ApplePay.canMakePayments')

Hello thanks for awsome libaray, I am trying to create a payment Request it works in my siumlator but not in real device after building it


  const requestData = {
    merchantIdentifier: 'my MID',
    supportedNetworks: ['mastercard', 'visa'],
    countryCode:  'SR',
    currencyCode: 'SAR',
    paymentSummaryItems: [
      {
        label: 'PAY TO',
        amount:  '100' ,
      },
    ],
  }

 const pay = async () => {
   // Check if ApplePay is available
   if (ApplePay.canMakePayments) {
     try {
       const paymentRequest = await ApplePay.requestPayment(requestData);
       ApplePay.complete(ApplePay.SUCCESS);
     } catch (error) {
       console.log(error);
       ApplePay.complete(ApplePay.FAILURE);
     }
   } else {
     alert("Cant make a payment")
   }
 }; 

Any tips please thanks in advnace

Not using existing cards

We have integrated this library and trying to test on TestFlight, but it is not using the existing card data but asking to add a new card. How can I make it so it uses the existing cards connected to Apple ID?

The card can not purchase but the transaction details are got.

RN Version: 0.59.10
Real Device: iphone 6S plus / iphone XR
Simulator: iphone Xs
iOS Version: iOS 12.0

The module can get all the transaction detail after clicking to pay. However, the card have not finished the transaction yet. No money is paid and none of the transaction SMS is received.

Untitled
All transaction details are got but in fact there is not any transaction.

Untitled
The code I have done.

null is not an object

When calling the ApplePay.canMakePayments, error: null is not an object. is occurred.

How can I fix the issue?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.