Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.56 KB | None | 0 0
  1. $paymentMethod = \Stripe\PaymentMethod::retrieve($request->payment_method_id);
  2.         $paymentIntent = \Stripe\PaymentIntent::create([
  3.             'customer' => $paymentMethod->customer,
  4.             'payment_method' => $paymentMethod->id,
  5.             'capture_method' => 'manual',
  6.             'confirm' => false,
  7.             'off_session' => false,
  8.             'amount' => $amount,
  9.             'currency' => 'EUR',
  10.             'description' => __('Consulting with :username (ID: :userid)', ['username' => $target->username, 'userid' => $target->id]),
  11.         ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement