Initiate the payment process with the payment gateway using
- Perch Shop installed
|String||Slug of the gateway to checkout with|
|Array||Options array, see table below|
||The URL to send the customer back to after a successful transaction.|
||The URL to send the customer to if something goes wrong, such as their card being declined.|
Check the individual gateway documentation for additional options.
perch_shop_checkout('gateway-slug', [ 'return_url' => '/payment/success', 'cancel_url' => '/payment/failure', ]);