iamraphson / vue-paystack

Paystack Vue Plugin for Vue 2.X

Home Page:https://www.npmjs.com/package/vue-paystack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plan not found

amustapha opened this issue · comments

I tested this a while back and it was working fine. And then, today, it keeps showing me plan not found.

Hello @m-bryo

Can I see your code? thanks.

<paystack :amount="235000 * 100" :email="user.email" :paystackkey="paystackkey" :reference="'l' + String(Date.now()).substr(6) + user.role.ref.substr(Math.ceil(Math.random() * 20), 6) + Math.floor(Math.random() * 1000)" :callback="callback" :close="close" class="btn btn-sm btn-primary" text="N50,000/yr" ></paystack>

Already fixed it though. It was a problem from my side, I had global computed vars with name plan and currency, so they were overriding the ones in the code hence paystack couldnot resolve the submitted plan which is json. I had to fork your code and rename them
currency: { type: String, default: 'NGN' }, plan: { type: String, default: '' },

@m-bryo you can send a PR tho. Thanks