IO-70 Add OEC Through Partner Call.

This commit is contained in:
Patrick Fic
2021-11-23 00:30:11 -08:00
parent 65402c1420
commit bfcc03850b
7 changed files with 246 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
import {
PaymentRequestButtonElement,
useStripe,
useStripe
} from "@stripe/react-stripe-js";
import React, { useEffect, useState } from "react";
@@ -60,7 +60,8 @@ export default function MobilePaymentComponent() {
// it to close the browser payment method collection interface.
ev.complete("success");
// Let Stripe.js handle the rest of the payment flow.
const { error, paymentIntent } = await stripe.confirmCardPayment(
const { error, //paymentIntent
} = await stripe.confirmCardPayment(
"clientSecret"
);
if (error) {

View File

@@ -1,7 +1,7 @@
import React from "react";
import MobilePaymentComponent from "./mobile-payment.component";
import { Elements } from "@stripe/react-stripe-js";
import { loadStripe } from "@stripe/stripe-js";
import React from "react";
import MobilePaymentComponent from "./mobile-payment.component";
const stripePromise = new Promise((resolve, reject) => {
resolve(