Stripe Plugin | Received unknown parameters: params, options

As the Title states using for example:
getCheckoutSessionParams: async ({ user, session, plan, subscription }, request) => {
return {
params: {
allow_promotion_codes: true,
tax_id_collection: {
enabled: true
},
billing_address_collection: 'required',
customer_update: {
address: 'auto'
},
custom_text: {
submit: {
message: 'Submitted'
}
},
metadata: {
userId: user.id,
planName: plan.name
}
},
options: {
idempotencyKey: `sub_${user.id}_${plan.name}_${Date.now()}`
}
};
}
getCheckoutSessionParams: async ({ user, session, plan, subscription }, request) => {
return {
params: {
allow_promotion_codes: true,
tax_id_collection: {
enabled: true
},
billing_address_collection: 'required',
customer_update: {
address: 'auto'
},
custom_text: {
submit: {
message: 'Submitted'
}
},
metadata: {
userId: user.id,
planName: plan.name
}
},
options: {
idempotencyKey: `sub_${user.id}_${plan.name}_${Date.now()}`
}
};
}
Bring the error: Received unknown parameters: params, options Something wrong in the Types maybe?
Solution:
update to 1.2.2
Jump to solution
2 Replies
Solution
bekacru
bekacru10h ago
update to 1.2.2
Jumaron
JumaronOP10h ago
nvm build error my bad looks like it works now

Did you find this page helpful?