I am creating a custom plugin of multiple Stripe for woocommerce and I have an issue with the payment_intent
API. I am using Stripe php library for the same.
$payDetails = StripePaymentIntent::create(array(
'customer' => $customer->id,
'amount' => $itemPrice,
'currency' => $currency,
'description' => $itemName,
'metadata' => array(
'order_id' => $orderID
),'confirmation_method' => 'manual',
'confirm' => true,'use_stripe_sdk'=> true
));
So I want to display a confirmation popup to authenticate the card on the server-side and once confirmed it needs to complete the order.