UNPKG

@hookflo/tern

Version:

A robust, scalable webhook verification framework supporting multiple platforms and signature algorithms

13 lines (12 loc) 558 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.paypalDefaultMapping = void 0; exports.paypalDefaultMapping = { provider: 'paypal', fieldMappings: [ { schemaFieldId: 'event_type', providerPath: 'event_type' }, { schemaFieldId: 'amount', providerPath: 'resource.amount.value', transform: 'toNumber' }, { schemaFieldId: 'currency', providerPath: 'resource.amount.currency_code', transform: 'toUpperCase' }, { schemaFieldId: 'transaction_id', providerPath: 'resource.id' }, ], };