Skip to content

Can't process subscription - angular 16: Uncaught Error: Must pass createSubscription with intent=subscription #242

@startupcode

Description

@startupcode

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'
},
};
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions