Documentation

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

Methods

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
Tags
throws
TransactionServiceException
throws
Exception
Return values
PaymentMethodSecret

Search results