Skip to content

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

Open
PaulChase wants to merge 1 commit into
digikraaft:masterfrom
PaulChase:fix-storing-of-authorization-code
Open

fix error when saving authorization code and getting plan code. Chang…#8
PaulChase wants to merge 1 commit into
digikraaft:masterfrom
PaulChase:fix-storing-of-authorization-code

Conversation

@PaulChase

Copy link
Copy Markdown

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
Copy Markdown
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.

2 participants