PaymentIntentService::create( null|array $params = null, null|array|StripeUtilRequestOptions $opts = null )

Creates a PaymentIntent object.


Description Description

After the PaymentIntent is created, attach a payment method and <a href="/docs/api/payment_intents/confirm">confirm to continue the payment. You can read more about the different payment flows available via the Payment Intents API here.

When

confirm=true

is used during creation, it is equivalent to
creating and confirming the PaymentIntent in the same call. You may use any
parameters available in the confirm
API
when

confirm=true

is supplied.


Parameters Parameters

$params

(Optional)

Default value: null

$opts

(Optional)

Default value: null


Top ↑

Return Return

(StripePaymentIntent)


Top ↑

Source Source

File: includes/gateways/stripe/vendor/stripe/stripe-php/lib/Service/PaymentIntentService.php


			

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.