We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Following the docs. Was seeing if I am doing something wrong. I have Carthage setup along with linking stripe. Here is a snippet of my payment method
global.PaymentRequest = require("react-native-payments").PaymentRequest; const METHOD_DATA = [ { supportedMethods: ["apple-pay"], data: { merchantIdentifier: "merchantIDGoesHere", supportedNetworks: ["visa", "mastercard", "amex"], countryCode: "US", currencyCode: "USD" // paymentMethodTokenizationParameters: { // parameters: { // gateway: "stripe", // "stripe:publishableKey": "STRIPE-PK-KEY" // } // } } } ]; const DETAILS = { displayItems: [ { label: `${someTitle}`, amount: { currency: "USD", value: somePrice } } ], shippingOptions: [ { id: "economy", label: "Economy Shipping", amount: { currency: "USD", value: "0.00" }, detail: "Arrives in 3-5 days" // `detail` is specific to React Native Payments } ], total: { // Merchant Name label: "Merchant Name", amount: { currency: "USD", value: somePrice } } }; const OPTIONS = { requestPayerEmail: true }; const pr = new PaymentRequest(METHOD_DATA, DETAILS, OPTIONS); pr .show() .then(paymentResponse => { const { paymentToken } = paymentResponse.details; console.log("paymentToken", paymentToken); // undefined paymentResponse.complete("success"); }) .catch(e => { console.log(e); pr.abort(); }); };
The text was updated successfully, but these errors were encountered:
Nvm. Had the wrong stripe key. I used the live key instead of the test key.
Sorry, something went wrong.
No branches or pull requests
Following the docs. Was seeing if I am doing something wrong. I have Carthage setup along with linking stripe. Here is a snippet of my payment method
The text was updated successfully, but these errors were encountered: