Vojta Svoboda said:
This is how I create payment intent and read clientSecret parameter in PaymentCardForm.php:
public function getPaymentIntentClientSecret()
$paymentMethod = $this->obOrderItem->payment_method->getObject();
// create payment intent gateway
$gw = Omnipay::create('Stripe\PaymentIntents');
'apiKey' => $paymentMethod->getProperty('apiKey'),
$paymentIntent = $gw->authorize([
'amount' => $this->obOrder->total_price_data->price_with_tax_value,
'currency' => $paymentMethod->gateway_currency,
'payment_method' => 'card',
$data = $paymentIntent->getData();
$response = $paymentIntent->sendData($data);
$data = $response->getData();
return $data['client_secret'] ?? null;
So with the new updates to the plugin and the new documentation on the main plugin page, I now am able to get stripe to actually do something (as in, when I enter my info and hit pay, it takes me to a page that loads the stripe box), but when I actually enter my data, I am not actually successfully completing a payment in stripe. My stripe dashboard shows me all of my payments, and they are all telling me "incomplete" (and for some reason I have 2 for each attempt).
Under one of these payments, the Events and Logs section tells me the following:
The PaymentIntent requires a payment method
Set an existing payment method on the PaymentIntent or have the customer enter a new payment method.
However, I don't see anywhere were we are actually sending this or where the customer is able to select anything but a card number.