Paypal.Order.ExperienceContext (Paypal v0.1.1)
View SourceThe experience context is the information needed for creating an order and provide information about how Paypal should behave when we go to its website for performing the payment.
Summary
Types
@type t() :: %Paypal.Order.ExperienceContext{ brand_name: String.t() | nil, cancel_url: String.t() | nil, landing_page: any() | nil, locale: String.t() | nil, payment_method_experience: any() | nil, return_url: String.t() | nil, shipping_preference: any() | nil, user_action: any() | nil }
The customisation we could perform are the following ones:
payment_method_experienceis unrestricted or immediate_payment_required.brand_nameis your branding that you want to show to your client.localeis the language you want to use.landing_pageis where the user goes first:loginif we want the user see the paypal login page first.guest_checkoutif we want to Paypal show first the manual payment.no_preferenceif we want Paypal choose based on the user.
shipping_preferenceis an indication about where we get the shipping data we could say hereno_shippingfor avoiding use a shipping address.user_actionis the action the user could do: continue or pay_now.return_urlis the URL where redirects when the payment is correct.cancel_urlis the URL where redirects when the payment is cancelled.