Apple Pay
You can also accept payments through Apple Pay via Checkout (Hosted Payments Page - HPP).
Follow the integration steps below to process transactions via Verifone eComm API.
Initiate a wallet payment using ApplePay
Check also our API documentation.
Generate a unique
merchant_reference.The
merchant_referenceneeds to be unique to identify the shopper when they are redirected to your server by Apple Pay. In the next step, you will be creating a transaction through the API, the transaction will return an id that needs to be stored safely with the reference. When the shopper returns, you can use this reference to confirm either through the webhook or through the GET transaction API call if the shopper has successfully completed the transaction.Required fields.
ParametersDescriptionpayment_provider_contractIn the Payment Provider Contracts section in Verifone Central, set the Payment Type to Apple Pay for web, select your contract and copy the Payment Provider Contract ID. Note this value is different in Sandbox and in Production.
amountAmount of the transaction.
merchant_referenceUnique UUID you generate and can link the transaction to when the customer returns.
currency_codeMore on the all currencies supported here: Verifone eCommerce API.
wallet_typestring Enum: "APPLE_PAY"
wallet_payloadobject The encrypted payload object provided by the Wallet on the frontend.
Start a payment session for Apple Pay wallet transactions
The Create a merchant payment session API documentation can be found here.
Create a merchant payment session
validation_url
String
The ULR pointing to the Apple Pay validation location.
domain
String
The domain from which the payment request will be initiated.
payment_provider_contract
String <uuid-flexible>
The identifier of payment provider contract you want to process the transaction request with
Web Integration
An Apple Pay web integration consists of implementing both client side and server side components. You will need to implement the following:
Create your Apple Pay button and initialize your Apple Pay session when clicked.
Initiate the merchant session by calling the on the
validatemerchantevent and provide the response to the session.completeMerchantValidation callback.Use the Apple Pay token to make a wallet transaction API call and complete the Apple Pay session based on the response.
Code sample
Last updated
Was this helpful?
