#muhammadadeel_63187

1 messages · Page 1 of 1 (latest)

elfin streamBOT
twilit jasper
#

Are you creating PaymentIntent directly via the API ?

cinder ibex
#

$paymentIntent = $stripe->paymentIntents->create([
'customer' => $user->stripe_id,
'amount' => $amount * 100,
'currency' => Setting::CURRENCY,
'application_fee_amount' => $plateFormFee * 100,
'automatic_payment_methods' => ['enabled' => true],
'transfer_data' => [
'destination' => $slot->provider->stripe_connect_id
],
'payment_method_options' => [
'card' => [
'setup_future_usage' => 'off_session',
],
],
]);
using php sdk

twilit jasper
#

No you can't

#

You need to create an Invoice first and then you'll have a PaymentIntent