Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple Pay paymentRequest.show() doesn't resolve #360

Open
raulgordejev opened this issue Sep 28, 2022 · 3 comments
Open

Apple Pay paymentRequest.show() doesn't resolve #360

raulgordejev opened this issue Sep 28, 2022 · 3 comments

Comments

@raulgordejev
Copy link

I'm following the official demo, but both on real device and emulator I'm getting stuck in the 'Processing' state. Also paymentRequest.show() promise never resolves. Any ideas what might be wrong here?

    const DETAILS = {
      id: 'basic-example',
      displayItems: [
	  {
		  label: 'Movie Ticket',
		  amount: { currency: 'USD', value: '15.00' },
	  },
      ],
      total: {
	  label: 'Freeman Industries',
	  amount: { currency: 'USD', value: '15.00' },
      },
    };

    const METHOD_DATA = [
      {
	      supportedMethods: ['apple-pay'],
	      data: {
		      merchantIdentifier: '***,
		      supportedNetworks: ['visa', 'mastercard'],
		      countryCode: 'EE',
		      currencyCode: 'EUR',
	      },
      },
     ];

    const paymentRequest = new PaymentRequest(METHOD_DATA, DETAILS);

    paymentRequest
	    .show()
	    .then((paymentResponse) => {
		    // Never gets here

		    paymentResponse.complete('success');
	    })
	    .catch((error) => {});

Screenshot 2022-09-28 at 15 38 06

Screenshot 2022-09-28 at 15 38 29

@filippobarcellos
Copy link

filippobarcellos commented Oct 5, 2022

Hey @raulgordejev Did you manage to get it running?

@raulgordejev
Copy link
Author

@filippobarcellos unfortunately not. I ended up using another library react-native-apple-payment

@dentep
Copy link

dentep commented Jan 18, 2023

still not resolved? having the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants