You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeap, nothing related found to createBillingAgreement "stuff"
Software Package Version:
Describe the bug
In theory, only one of the following should be provided to PayPal: createOrder, createBillingAgreement and createSubscription with an appropriate value of intent. Currently it seems that props are mixed before providing to PayPal script. With the appearence of the error, PayPal button is unresponsive.
To Reproduce
Providing createBillingAgreement and missing createOrder produces: Error: Do not pass both createBillingAgreement and createOrder
Made the same test as before with createOrder={false} or createOrder={undefined} or createOrder={null}. Error remains
Based on the code we have createOrder={(createSubscription || createBillingAgreement) ? undefined : createOrderFn} which translates to "if createBillingAgreement or createSubscription is provided do not provide createOrderFn to PayPal". So I tested providing createSubscription with no createOrder and intent=subscription and everything worked as expected. So at some point this code works, but not for createBillingAgreement part.
Expected behavior
Providing createBillingAgreement and intent=tokenize should work as expected
Desktop (please complete the following information):
OS: Windows, but I don't think it's related
Browser: Tested in Opera and Chrome
React Version: 16
Screenshots
Additional context
Just for reference
<PayPalButton// createOrder={false}createBillingAgreement={()=>{
...whateverworks}}onApprove={(data)=>{
...whateverisneeded}}onCancel={()=>{
...whatevergetscanceled}}options={{clientId: stuff,commit: false,vault: true,intent: 'what is needed per case',}}/>
The text was updated successfully, but these errors were encountered:
To Do First
"react-paypal-button-v2": "^2.6.3",
createBillingAgreement
"stuff"Software Package Version:
Describe the bug
In theory, only one of the following should be provided to PayPal:
createOrder
,createBillingAgreement
andcreateSubscription
with an appropriate value ofintent
. Currently it seems that props are mixed before providing to PayPal script. With the appearence of the error, PayPal button is unresponsive.To Reproduce
createBillingAgreement
and missingcreateOrder
produces:Error: Do not pass both createBillingAgreement and createOrder
createOrder={false}
orcreateOrder={undefined}
orcreateOrder={null}
. Error remainscreateOrder={(createSubscription || createBillingAgreement) ? undefined : createOrderFn}
which translates to "if createBillingAgreement or createSubscription is provided do not provide createOrderFn to PayPal". So I tested providingcreateSubscription
with nocreateOrder
andintent=subscription
and everything worked as expected. So at some point this code works, but not forcreateBillingAgreement
part.Expected behavior
Providing
createBillingAgreement
andintent=tokenize
should work as expectedDesktop (please complete the following information):
Screenshots

Additional context
Just for reference
The text was updated successfully, but these errors were encountered: