Skip to content

Instantly share code, notes, and snippets.

@easycartpl
Last active September 16, 2021 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save easycartpl/5fe9f602e9b8b58ee0334fbfe94befc8 to your computer and use it in GitHub Desktop.
Save easycartpl/5fe9f602e9b8b58ee0334fbfe94befc8 to your computer and use it in GitHub Desktop.
{
"event":"subscription_plan_changed",
"success":true,
"is_subscription":true,
"is_renew":false,
"is_new":false,
"last_chance":false,
"error_message":null,
"trial_ends_at":"2021-06-03T13:58:04+02:00",
"subscription_renews_at":null,
"subscription_canceled":false,
"subscription_expired":false,
"subscription_new_plan_name":"ux-99-yearly",
"amount_paid":351,
"customer_name":"Jan Kowalski",
"customer_first_name":"Jan",
"customer_last_name":"Kowalski",
"customer_email":"jan@kowalski.pl",
"customer_password":null,
"customer_id":30,
"customer_stripe_id":"cus_JQDJM3E4uJCk98",
"order_id":27,
"order_amount":10.5,
"order_has_invoice":true,
"invoice_stripe_id":"inv_JKDL201u919b03",
"invoice_data":{
"nip":"1234567890",
"name":"Jan Kowalski",
"first_name":"Jan",
"last_name":"Kowalski",
"street":"ul. Testowa",
"street_number":"1",
"house_number":"",
"city":"Testowo",
"post_code":"56000",
"post_city":""
},
"invoice_api_scope":"ahoy",
"checkboxes":{
"newsletter":false,
"mandatory":true,
"optional":true
},
"shipping":{
"first_name":"Patryk",
"last_name":"Testowy",
"phone":"602501131",
"address":"Testowa 1",
"post_code":"33-900",
"city":"Testowo Dolne"
},
"product_name":"Ahoy! Spo\u0142eczno\u015b\u0107 UI & UX",
"product_description":"Dost\u0119p do ca\u0142ej spo\u0142eczno\u015bci UI \/ UX w ramach Ahoy!",
"product_file":null,
"price_description":"ux-99-yearly",
"price_name":"z dostępem do społeczności",
"subscription_id":27,
"subscription_stripe_id":"sub_JQDJgyZAuIe8PC",
"subscription_plan_name":"ux-99-yearly",
"subscription_plan_price":49,
"subscription_current_period_start":"2021-05-04T14:03:39+02:00",
"subscription_current_period_end":"2021-06-03T13:58:04+02:00",
"subscription_onetime":true,
"custom_params":{
"param1":"value1",
"param2":"value2"
},
"ref":null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment