Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function setStripeInfo()
- {
- // payment intent
- $secret_key = config('services.stripe.sk');
- Stripe::setApiKey($secret_key);
- $paymentIntent = PaymentIntent::create([
- 'amount' => 50,
- 'currency' => 'usd',
- 'payment_method_types' => ['card_present'],
- 'capture_method' => 'manual',
- 'on_behalf_of' => $this->stripe_act,
- 'transfer_data' => [
- 'destination' => $this->stripe_act,
- ]
- ]);
- $this->paymentIntentId = $paymentIntent->id;
- $this->clientSecret = $paymentIntent->client_secret;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement