Skip to content

Commit

Permalink
provide payment method attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
lohanidamodar committed Feb 5, 2024
1 parent 3b4675e commit 3e706b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Pay/Adapter/Stripe.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ public function createFuturePayment(string $customerId, ?string $paymentMethod =
'payment_method_types' => $paymentMethodTypes,
];

if ($paymentMethod != null) {
$requestBody['payment_method'] = $paymentMethod;
}

if ($paymentMethodConfiguration != null) {
$requestBody['payment_method_configuration'] = $paymentMethodConfiguration;
$requestBody['automatic_payment_methods'] = [
Expand Down

0 comments on commit 3e706b6

Please sign in to comment.