📜  条纹 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:03.879000             🧑  作者: Mango

代码示例1
import stripe from 'react-native-stripe-payments';

const cardDetails = {
  number: '4242424242424242',
  expMonth: 10,
  expYear: 21,
  cvc: '888',
}
stripe.confirmPayment('client_secret_from_backend', cardDetails)
  .then(result => {
    // result of type PaymentResult
  })
  .catch(err =>
    // error performing payment
  )