Uncaught Error: Must pass createSubscription with intent=subscription
Hi can you please share how to use createSubscription. I'm using ngx-paypal 11.0.0 version and failed to implement subscription.
My code is like. tried every combination but not working. Please help need to make the website live.
this.payPalConfig = {
clientId: this.globalVar.PAYPAL_CLIENT_ID,
createSubscription: data => {
plan_id: _this.planID,
custom_id: _this.userdata.id,
intent: 'subscription'
},
intent: 'subscription',
style: {
shape: 'rect',
color: 'gold',
layout: 'vertical',
label: 'paypal',
},
vault: 'true',
advanced: {
intent: 'subscription', vault: 'true'
},
};
}