Skip to content

Commit

Permalink
Paypal Attribution Id
Browse files Browse the repository at this point in the history
  • Loading branch information
jdart-bold committed Dec 7, 2023
1 parent cebc545 commit 026afc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/paypal/getPaypalScriptOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ export function getPaypalScriptOptions(clientId: string, debug: boolean, merchan
'integrationDate': '2020-03-10',
'merchantId': merchantId,
'components': components,
'dataPartnerAttributionId': debug ? 'BoldCommerce_BT_TEST' : 'BoldCommerce_BT',
};
}
1 change: 1 addition & 0 deletions tests/paypal/getPaypalScriptOptions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ describe('testing getPaypalScriptOptions function', () => {
'integrationDate': '2020-03-10',
'merchantId': undefined,
'components': undefined,
'dataPartnerAttributionId': 'BoldCommerce_BT',
};

const result = getPaypalScriptOptions(clientId, isDebug);
Expand Down

0 comments on commit 026afc8

Please sign in to comment.