Closed holdMyTea closed 3 years ago
Trying to add a createBillingAgreement w/o these changes throws the following error:
createBillingAgreement
Uncaught Error: Do not pass both createBillingAgreement and createOrder
So I've added the prop to prevent the default createOrder being passed if createBillingAgreement is present.
createOrder
Works well on my test environment setup, I'm receiving back valid data and action params in the callback.
data
action
UPD: we're currently on prod with this for more than a week, everything seems to be working fine.
Trying to add a
createBillingAgreement
w/o these changes throws the following error:So I've added the prop to prevent the default
createOrder
being passed ifcreateBillingAgreement
is present.Works well on my test environment setup, I'm receiving back valid
data
andaction
params in the callback.