Filter eligible cards
Sendwallet_card_acceptance when you create the checkout session to limit which cards the customer can select in the Apple Pay payment sheet. Cards that do not match are shown greyed out.
- Every field is optional. A field you do not send keeps the default behaviour.
- Values must be uppercase. An empty list is rejected with
400 INVALID_PARAMETERS. - The object can only be set when the session is created. Updating the session does not change it.
- The filters apply only to the Apple Pay payment sheet. Cards entered in the card form are not affected.
The Apple Pay button is still displayed when none of the customer’s cards is eligible. The customer sees every card greyed out in the payment sheet.
If your account is set to process credit cards only, the
supported_funding_types sent on the session takes precedence for Apple Pay.Obtain DPAN BIN in OTT response
When a payment is completed with Apple Pay, the iOS SDK returns the full OTT (One-Time Token) service response. Within this response, thecard_data object contains card-related information associated with the Apple Pay payment, including the DPAN BIN (the first digits of the Device Primary Account Number used in the transaction).
Merchants can use this object to retrieve card details such as brand, type, issuer, and the iin field, which represents the DPAN BIN. You can use this to evaluate BIN-based promotions and discounts, and for reporting.
On iOS, implement yunoCreatePayment(with:information:) in your YunoPaymentDelegate instead of yunoCreatePayment(with:). The information dictionary is this response.
Limitation: the
iin reflects the default card selected in the payment sheet when the payment is created. If the shopper switches cards in the payment sheet, the iin may not match the card used for the final payment. Avoid presenting BIN-based promotions as guaranteed until the payment is confirmed.Example OTT response (iOS SDK)
The following example shows the SDK response containing thecard_data object with the iin field:
Apple Pay Cancel Flow
When a user cancels the Apple Pay flow, the Web SDK reports the statusCANCELED_BY_USER and the iOS SDK reports userCancelled in Yuno.Result.
Metadata and paymentCreated (Web SDK)
TheoldClosePaymentFlow method (and related cancel events) now includes an optional metadata parameter with the paymentCreated field. This allows merchants to know if a payment was already created on the backend before the user canceled the flow.
paymentCreated: true: A payment was created (for example, during OTT creation phase). Merchants should check the payment status and potentially trigger anabandonPaymentcall.paymentCreated: false: No payment was created before cancellation.
paymentCreated = true during the onvalidatemerchant phase to ensure correct tracking and abandonment of pending payments.