Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix error when saving authorization code and getting plan code. Chang… #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PaulChase
Copy link

An error is thrown when getting athorization code from the subscription data returned.
here is the new format of subscription data returned.

"customer": 96698996
  "plan": 123456
  "integration": 123456
  "domain": "test"
  "start": 1234567890
  "status": "active"
  "quantity": 1
  "amount": 150000
  "authorization": 123456789
  "invoice_limit": 0
  "split_code": null
  "subscription_code": "SUB_qwertyuio"
  "email_token": "qwertyuiopl"
  "id": 123456
  "cancelledAt": null
  "createdAt": "2022-09-29T11:16:00.185Z"
  "updatedAt": "2022-09-29T11:16:00.185Z"
  "cron_expression": "16 11 28 * *"
  "next_payment_date": "2022-10-28T11:16:00.000Z"

note: some values above are dummy values (for security purposes).

major changes are authorization and plan properties, which are integers not objects.

…es to the new format of subscription data returned
@timoladoyinbo
Copy link
Member

Hi, @PaulChase thanks for the pull request. Could you check the failing tests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants