PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.17.0
GiveWP – Donation Plugin and Fundraising Platform v4.17.0
4.17.0 4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 All 256 releases
give / src / PaymentGateways / Gateways / Stripe / StripePaymentElementGateway / DataTransferObjects / StripeGatewayData.php

StripeGatewayData.php in GiveWP – Donation Plugin and Fundraising Platform 4.17.0, at src/PaymentGateways/Gateways/Stripe/StripePaymentElementGateway/DataTransferObjects/StripeGatewayData.php

40 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Give\PaymentGateways\Gateways\Stripe\StripePaymentElementGateway\DataTransferObjects;
4
5 class StripeGatewayData
6 {
7 /**
8 * @var string
9 */
10 public $stripeConnectedAccountId;
11 /**
12 * @var string
13 */
14 public $successUrl;
15 /**
16 * @var string
17 */
18 public $stripePaymentMethod;
19 /**
20 * @var bool
21 */
22 public $stripePaymentMethodIsCreditCard;
23
24 /**
25 * @since 3.0.0
26 *
27 * @param array{stripeConnectedAccountKey: string, stripePaymentIntentId: string} $request
28 * @return StripeGatewayData
29 */
30 public static function fromRequest(array $request): StripeGatewayData
31 {
32 $self = new self();
33 $self->stripePaymentMethod = $request['stripePaymentMethod'];
34 $self->stripePaymentMethodIsCreditCard = $request['stripePaymentMethodIsCreditCard'];
35 $self->stripeConnectedAccountId = $request['stripeConnectedAccountId'];
36 $self->successUrl = rawurldecode($request['successUrl']);
37
38 return $self;
39 }
40 }