tf-checkout-react 1.0.16 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.16",
2
+ "version": "1.0.17",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -88,6 +88,7 @@ export const PaymentContainer = ({
88
88
  paymentMethod: { id },
89
89
  } = await response
90
90
  const paymentResponse = await handlePaymentData(order_hash, id)
91
+ console.log(paymentResponse)
91
92
  if (paymentResponse.status === 200) {
92
93
  handlePayment(paymentResponse)
93
94
  }
@@ -55,6 +55,7 @@ const CheckoutForm = ({
55
55
  const card = elements.getElement(CardNumberElement)
56
56
  const response = await stripe.createPaymentMethod({ type: 'card', card: card || { token: '' } })
57
57
  //What to do with data?
58
+
58
59
  onSubmit(response)
59
60
  }
60
61