Hello,
I am currently testing an Adyen integration with Sylius and need to verify Apple Pay with Cartes Bancaires in the sandbox environment. Could you please advise how Cartes Bancaires can be tested in Apple Pay Sandbox (e.g. cards details)?
Thank you in advance for your guidance.
Best regards,
Grzegorz
Hi @GSadee,
You wrote:
[...] I am currently testing an Adyen integration with Sylius and need to verify Apple Pay with Cartes Bancaires in the sandbox environment. Could you please advise how Cartes Bancaires can be tested in Apple Pay Sandbox (e.g. cards details)? [...]
Testing Carte Bancaires (CB) with Apple Pay is more complex than testing Visa, or Mastercard alone because:
- CB cards in France are almost always co-badged (CB + Visa or CB + Mastercard)
- Apple Pay requires explicit CB network declaration in your payment request
- The Apple Pay sandbox and Adyen sandbox are two separate systems that must be aligned
- Raw card numbers are never used directly in Apple Pay — everything goes through tokenization
Please contact Carte Bancaires or Adyen directly for use test cards from Adyen's sandbox, as the test cards are updated periodically.
However, with Apple Pay those raw numbers are not entered directly. Apple Pay generates an encrypted payment token (DPAN + cryptogram). The card numbers from Adyen are relevant for:
- Direct Adyen API testing with Apple Pay
- Verifying CB routing logic independently from Apple Pay tokenization
- Drop-in component testing in card-entry mode
For Apple Pay, your configuration must explicitly include cartesBancaires in the supportedNetworks array:
const applePayConfig = {
supportedNetworks: [
'cartesBancaires', // ← MUST be explicit
'visa',
'masterCard'
],
merchantCapabilities: ['supports3DS'],
countryCode: 'FR',
currencyCode: 'EUR'
};
let request = PKPaymentRequest()
request.supportedNetworks = [
.cartesBancaires, // PKPaymentNetworkCartesBancaires (iOS 12.1.1 and later)
.visa,
.masterCard
]
When both cartesBancaires and visa/masterCard are listed in supportedNetworks, Apple Pay:
- Displays a network toggle in the Wallet UI (iOS 12.2 and later) allowing the cardholder to switch between CB and Visa/Mastercard before authorizing
- Defaults to whichever network appears first in the
supportedNetworksarray if the user does not manually switch - Embeds the selected network in the
PKPaymentTokenaspaymentNetwork
Since you cannot physically interact with a Wallet toggle in all sandbox scenarios, you can force CB network routing by either providing only CB:
supportedNetworks: ['cartesBancaires']
Or listing CB first:
supportedNetworks: ['cartesBancaires', 'visa', 'mastercard']
To learn more about sandbox testing and using the Wallet sandbox, see my answer on the post below:
Sandbox Testing
https://developer.apple.com/forums/thread/799165?answerId=893971022#893971022
You can then use the CB test cards providing by Adyen or CB themselves when adding the cards to your sandbox Wallet.
Cheers,
Paris X Pinkney | WWDR | DTS Engineer