Payment Method Type in Payment Webhooks
Payment webhooks now tell you how the shopper paid. A new paymentMethodType field in additionalData separates Apple Pay and Google Pay payments from plain card payments, so you can reconcile and report by payment method.
What's included
paymentMethodType is sent on the Authorization, Capture, Adjustment, Refund and Tokenization events. Its value is one of Cards, ApplePay, GooglePay, WeChatPay, AliPay or Kortalan.
The card brand is still sent in paymentMethod, as before. A Visa card paid through Apple Pay arrives as:
"additionalData": {
"paymentMethod": "VI",
"paymentMethodType": "ApplePay"
}
Compatibility
The field is new and nothing existing is renamed or removed. The HMAC signature is unchanged, because it is calculated only over the top-level fields.
See the full documentation at Authorization Event.