cancel
Showing results for 
Search instead for 
Did you mean: 

Apple Pay on the Web integration

We are trying to help our merchant customers integrating Apple Pay on the Web and using Authorize.Net as their payment gateway. With regards to the "Create an Apple Pay Transaction" API example snippet below, we have the following 2 questions:

 

1. For Apple Pay on the web, should the "dataDescriptor" field be set to "COMMON.APPLE.INAPP.PAYMENT" or some other value?

2. For Apple Pay on the web, should we set the "dataValue" field to the Apple Pay token retrieved from consumer's Apple Pay wallet?

 

{ "createTransactionRequest": { "merchantAuthentication": { "name": "5KP3u95bQpv", "transactionKey": "346HZ32z3fP4hTG2" }, "refId": "123456", "transactionRequest": { "transactionType": "authCaptureTransaction", "amount": "50", "payment": { "opaqueData": { "dataDescriptor": "COMMON.APPLE.INAPP.PAYMENT", "dataValue": "1234567890ABCDEF1111AAAA2222BBBB3333CCCC4444DDDD5555EEEE6666FFFF7777888899990000" } },

 

Thanks,

JS

js
Member
13 REPLIES 13

Hi Arif

 

So, in your screenshot, you've got the token returned from Apple Pay, though it doesn't look like straight JSON to me. You're going to need to have this data as a json string.

 

Anway, you can see it has three top level elements: paymentMethod, transactionIdentifier and paymentData.

 

You need to take ONLY the paymentData json element, encode that string using Base64 (see qw's example in this thread), then pass that encoded data as the value of the opaqueDataType passed in as PaymentType to the Authorize.net API.

Best information is available in post.  <a href="https://easycpstest.com/spacebar-counter/">spacebar counter</a>

This will be supported in macOS when it is released in Autumn 2016, and is in the macOS beta released on June 13th 2016 at WWDC.

The documentation lacks any actual examples of how to integrate it as a whole at the moment, just the API definitions, which are very minimal.

A selection of links are below: You can find more about webkit bridge in the links bellow: Apple docs:

I'm currently investigating this integration. You can, but you need iOS native app as a wrapper and then you "project" a web view and call Objective C from javascript and vice versa.

 

You can use Apple Pay to pay online in Safari or within apps when you see Apple Pay as a payment option. Tap the Apple Pay button or choose Apple Pay as your payment method in Ball Arena Food. To pay with a different card, tap the Next button or the Expand Menu button next to your default card.

jamehook
Member