stripe-react-native icon indicating copy to clipboard operation
stripe-react-native copied to clipboard

Need to update the items property of presentApplePay()'s param from Stripe doc

Open aakanksha-02 opened this issue 5 years ago • 4 comments

I was trying to implement Apple Pay on react-native platform using https://stripe.com/docs/apple-pay?platform=react-native.

For presentApplePay() method, the param should have cartItems property, not items as per https://stripe.dev/stripe-react-native/api-reference/interfaces/applepay.presentparams.html

I think it should be updated in the doc in Step 6 and 7 from the first link.

aakanksha-02 avatar May 11 '21 13:05 aakanksha-02

Good catch, thank you!

thorsten-stripe avatar May 11 '21 14:05 thorsten-stripe

Thanks for filing this issue @aakanksha-02 - adding a few minor notes for a new team member:

On the page: https://stripe.com/docs/apple-pay?platform=react-native

Update the following code snippets from items to cartItems as shown:

Step 6 code snippet:

Apple_Pay

Step 7 code snippet: cart_items

trag-stripe avatar May 19 '21 04:05 trag-stripe

Adding @laurenoh-stripe to this issue ✅

trag-stripe avatar May 19 '21 21:05 trag-stripe

This is all set! https://stripe.com/docs/apple-pay?platform=react-native

laurenoh-stripe avatar May 20 '21 14:05 laurenoh-stripe