Server IP : 66.29.132.124 / Your IP : 18.220.43.27 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/book24.ng/vendor/omnipay/stripe/src/Message/PaymentIntents/ |
Upload File : |
<?php /** * Stripe Payment Intents Purchase Request. */ namespace Omnipay\Stripe\Message\PaymentIntents; /** * Stripe Payment Intents Purchase Request. * * A payment method is required. It can be set using the `paymentMethod`, `source`, * `cardReference` or `token` parameters. * * *Important*: Please note, that this gateway is a hybrid between credit card and * off-site gateway. It acts as a normal credit card gateway, unless the payment method * requires 3DS authentication, in which case it also performs a redirect to an * off-site authentication form. * * Because a purchase request in Stripe looks similar to an Authorize request, this * class simply extends the AuthorizeRequest class and overrides the * getData method setting capture_method to be automatic. * * You should also look at that class for code examples. * * @see \Omnipay\Stripe\PaymentIntentsGateway * @see \Omnipay\Stripe\Message\PaymentIntents\AuthorizeRequest * @see \Omnipay\Stripe\Message\PaymentIntents\CreatePaymentMethodRequest * @see \Omnipay\Stripe\Message\PaymentIntents\ConfirmPaymentIntentRequest * @link https://stripe.com/docs/api/payment_intents */ class PurchaseRequest extends AuthorizeRequest { public function getData() { $data = parent::getData(); $data['capture_method'] = 'automatic'; return $data; } }