SetupPaymentMethodService
in package
Tags
Table of Contents
- $client : Client
- __construct() : mixed
- setupPaymentMethod() : PaymentMethodSecret
- Using this endpoint will return a payment method secret that must be used on the front end to complete PCI authentication with Stripe.
Properties
$client
private
Client
$client
Tags
Methods
__construct()
public
__construct(Client $client) : mixed
Parameters
- $client : Client
Tags
Return values
mixed —setupPaymentMethod()
Using this endpoint will return a payment method secret that must be used on the front end to complete PCI authentication with Stripe.
public
setupPaymentMethod(SetupPaymentMethodRequest $request) : PaymentMethodSecret
Setup a Stripe Intent for Element javascript usage to complete a payment method.
To create Payment Method Element:
https://stripe.com/docs/payments/accept-a-payment?ui=elements
To complete PCI authentication for non-Canadian Bank:
https://stripe.com/docs/js/setup_intents/confirm_setup
To complete PCI authentication for Canadian Bank:
https://stripe.com/docs/js/setup_intents/confirm_acss_debit_setup
Parameters
- $request : SetupPaymentMethodRequest