diff --git a/lib/Checkout/Payments/PreferredExperiences.php b/lib/Checkout/Payments/PreferredExperiences.php new file mode 100644 index 0000000..7780306 --- /dev/null +++ b/lib/Checkout/Payments/PreferredExperiences.php @@ -0,0 +1,9 @@ +enabled = true; + $authentication = new Authentication(); + $authentication->preferred_experiences = PreferredExperiences::$googleSpa; + $paymentRequest = new PaymentRequest(); $paymentRequest->source = $requestCardSource; $paymentRequest->capture = false; @@ -113,6 +118,7 @@ private function makeEstimatedAuthorizedPayment() $paymentRequest->amount = 10; $paymentRequest->authorization_type = AuthorizationType::$estimated; $paymentRequest->partial_authorization = $partialAuthorization; + $paymentRequest->authentication = $authentication; $paymentRequest->currency = Currency::$EUR; $paymentRequest->customer = $customerRequest; $paymentRequest->sender = $paymentIndividualSender;