dw.order.GiftCertificate objects, so redeemed certificates are created and tracked natively in SFCC.
This is an optional feature. It requires Business Manager configuration and project code. See Required customization.
Purchasing a gift certificate
Native gift certificates are purchased through the standard SFCC gift certificate purchase flow (storefront gift-certificate page). The certificate appears on the cart as a normal line item.Redeeming a gift certificate on checkout
On the Global-e checkout, the shopper enters the certificate details and applies them. The number of input fields (Card ID only, Card ID + PIN, and so on) is configured on the Global-e side per project. After a successful checkout, a gift certificate is created on the SFCC instance (Merchant Tools → Ordering → Gift Certificates). The redemption uses the same three Global-e requests as other alternative payments, but with native gift-certificate semantics tracked inredeemResponseJSON:
- If the certificate covers the full order total, the shopper can place the order with no additional payment.
- If it covers only part of the total, the shopper selects a payment method for the remainder.
Required customization
Native gift certificate behaviour is customized through dedicated Global-e hooks. Register the ones you need in your project cartridgehooks.json:
Note:
onAfterGiftCertificateOrderCreate (used for the OCAPI order-create flow) is registered without the globale. prefix, exactly as shown. The other three use the globale. namespace.int_globale/cartridge/scripts/globale/alternativePayments/providers/GiftCardNativeProvider.jsint_globale/cartridge/models/globale/alternativePayments/GiftCardNativeStrategy.js

