Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $paymentMethod = \Stripe\PaymentMethod::retrieve($request->payment_method_id);
- $paymentIntent = \Stripe\PaymentIntent::create([
- 'customer' => $paymentMethod->customer,
- 'payment_method' => $paymentMethod->id,
- 'capture_method' => 'manual',
- 'confirm' => false,
- 'off_session' => false,
- 'amount' => $amount,
- 'currency' => 'EUR',
- 'description' => __('Consulting with :username (ID: :userid)', ['username' => $target->username, 'userid' => $target->id]),
- ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement