Can I process Payouts to customers using Apple Pay?

  Last updated: 

Please see the guidance below:

  The solutions documented here require integration with our Webservices API. View our docs.

For Payment Pages, JavaScript or Mobile SDK integrations

If you're developing Payouts for Apple Pay for integrations using our hosted Payment Pages or JavaScript solutions, you can only process payouts using a parenttransactionreference value from a previous transaction.

Expand to view more info

Submit a REFUND request including the parenttransactionreference of a previous transaction from which you want to inherit the Apple Pay card token.

Python PHP cURL Raw JSON Raw XML
#!/usr/bin/python
import securetrading

stconfig = securetrading.Config()
stconfig.username = "webservices@example.com"
stconfig.password = "Password1^"
st = securetrading.Api(stconfig)

payout= {
  "accounttypedescription": "CFT",
  "baseamount": "1",
  "currencyiso3a": "GBP",
  "parenttransactionreference": "1-2-345678",
  "requesttypedescriptions": ["REFUND"],
  "sitereference": "site12346"
}

strequest = securetrading.Request()
strequest.update(payout)
stresponse = st.process(strequest) #stresponse contains the transaction response

Replace <DOMAIN> with a supported domain. View full domain list.

If the payout is declined, this may be due to the Apple Pay token referenced in your request being deleted or updated. In this scenario:

  1. Process a new payment or account check to re-capture the cardholder's Apple Pay details.
  2. Obtain the new transactionreference from the response.
  3. Submit a new payout request using this transactionreference as the parenttransactionreference.

If the payout is still declined, the cardholder should contact their card issuer for support.

For API integrations with Apple Pay direct

If you're developing Payouts for integrations that processes transactions with Apple Pay directly, you can include an Apple Pay card token in a new API request to process the payout.

Expand to view more info

Submit a REFUND request including the unique Apple Pay card token in the pan field. Note: You don't need to submit the parenttransactionreference in this flow.

Python PHP cURL Raw JSON Raw XML
#!/usr/bin/python
import securetrading

stconfig = securetrading.Config()
stconfig.username = "webservices@example.com"
stconfig.password = "Password1^"
st = securetrading.Api(stconfig)

auth = {
  "accounttypedescription":"CFT",
  "baseamount":"2000",
  "currencyiso3a":"GBP",
  "eci":"2",
  "expirydate":"07/2023",
  "pan":"5100000000000511",
  "requesttypedescriptions": ["REFUND"],
  "sitereference": "test_site12345",
  "tavv":"ALFoEd4DhmGzAIj3dUo4AoABFA==",
  "walletdisplayname":"MasterCard 0511",
  "walletsource":"APPLEPAY"
}

strequest = securetrading.Request()
strequest.update(auth)
stresponse = st.process(strequest) #stresponse contains the transaction response

Replace <DOMAIN> with a supported domain. View full domain list.

  If the payout is declined, the cardholder should contact their card issuer for support.

Was this article helpful?
0 out of 0 found this helpful