Testing Apple Pay Transaction Processing

The following Apple Pay tests allow you to verify your submission of valid XML for two Apple Pay scenarios. The first test scenario applies to the case where you decrypt the Apple Pay PKPaymentToken, while the second scenario applies to the Worldpay decryption PKPaymentToken components submitted in a cnpAPI transaction.

For information about testing the submission of the PKPaymentToken using the Mobile eProtect, please refer to the Worldpay eComm eProtect Integration Guide.

Testing the Submission of the Decrypted PKPaymentToken in cnpAPI

To test the submission of an Apple Pay transaction in cnpAPI when you decrypt the PKPaymentToken, you must include the information listed in the table below in an Authorization or Sale transaction. Assuming you submit valid XML with appropriate values, the test environment will return an approved response message.

TABLE 2-30  cnpAPI Elements for Merchant Decrypted PKPaymentToken

cnpAPI Element

Value

number

Use any valid (Mod-10 compliant) test card number.

expDate

Use any valid expiration date (i.e., a date in the future).

authenticationValue

Any Base-64 encoded value between 40 and 512 characters in length. This value simulates the cryptogram extracted from the PKPaymentToken.

orderSource

Set to applepay

Testing the Submission of PKPaymentToken in cnpAPI

When you receive a PKPaymentToken, you must parse (not decrypt) the component parts and use the data to populate the cnpAPI <applepay> child elements. This test is designed to allow you to verify your ability to parse the PKPaymentToken data and construct well formed cnpAPI messages. The test uses the data from the example PKPaymentToken shown below (data element names in bold red type) to construct an Authorization or Sale transaction (see applepay) The system returns a Response Code of 000 - Approved.

Example: PKPaymentToken

{"version":"EC_v1","data":"Ww9EI+10VVpyZrAb3nxu9c8PG4JEnIh4oTkDhZi4axj5QqC5WIir6TJcFmk/ 3wkrNL/KaRXz3aan4WRO6cPL+cUTRpQUO9ECqTBItmQbJxGbN42713TyI+y97k3msl7bd5rJOMIOpkCtfp2ua+3 lnBhjGFnUzdCxq+/K6eoIEwYlAEfX9Sdpjm+plVfvSK7vj0BQCcXo1dXGkNUKwKWA4GYPUE3qwbuiQWcZwLxAEF 43274pACV4LBmdv0HYgYpcgCY0+U6/YSVKdpPrhHLDeLOlO7T4WwuimHojsKA/BknpPY1uJfP+YJxj1fYghaAOA R0tA5cYJftlWLXaV9lZu113Ns1rx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DDCVBcHBsZSBBcHBsaWNhdGlvbiBJbnRlZ3JhdGlvbiBDQSAtIEczMSYwJAYDVQQLDB1BcHBsZSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTETMBEGA1UECgwKQXBwbGUgSW5jLjELMAkGA1UEBhMCVVMCCEKQlelCCG+KMA0GCWCGSAFlAwQCAQUAoGkwGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTQxMDAzMjE1NjQzWjAvBgkqhkiG9w0BCQQxIgQgg8i4X6yRAU7AXS1lamCf02UIQlpUvNPToXUaamsFUT8wCgYIKoZIzj0EAwIER zBFAiBe17NGTuuk+W901k3Oac4Z90PoMhN1qRqnij9KNEb/XAIhALELZyDWw0fQM8t0pXO86gg9xXFz424rEMlJ 01TM1VxhAAAAAAAA","header":{"applicationData":"496461ea64b50527d2d792df7c38f301300085dd 463e347453ae72debf6f4d14","transactionId":"f9b0d3cfbb64cd155249c691aca3c521de03725720616b810d90341f97f347b7","ephemeralPublicKey":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEarp8xOhLX9QliUPS9c54i3cqEfrJD37NG75ieNxncOeFLkjCk","publicKeyHash":"jAMRQqg4nffHrXvfwRfbaEc11b k3QD3rv5K9xLqLgu0="}}