Stripe Subscription object from Invoice object is nullSafely turning a JSON string into an objectCreate ArrayList from arrayAvoiding != null statementsHow do I call one constructor from another in Java?How do I test for an empty JavaScript object?Convert form data to JavaScript object with jQueryWhy can't Python parse this JSON data?How do I POST JSON data with Curl from a terminal/commandline to Test Spring REST?Stripe testing subscription Lumen 5.1stripe payment not working on live environment
Is there a good way to store credentials outside of a password manager?
Is the destination of a commercial flight important for the pilot?
Trouble understanding overseas colleagues
Cynical novel that describes an America ruled by the media, arms manufacturers, and ethnic figureheads
Why is delta-v is the most useful quantity for planning space travel?
Time travel short story where a man arrives in the late 19th century in a time machine and then sends the machine back into the past
How does a character multiclassing into warlock get a focus?
How was Earth single-handedly capable of creating 3 of the 4 gods of chaos?
Can I use my Chinese passport to enter China after I acquired another citizenship?
Can I Retrieve Email Addresses from BCC?
Valid Badminton Score?
The plural of 'stomach"
Ways to speed up user implemented RK4
What are the ramifications of creating a homebrew world without an Astral Plane?
What is difference between behavior and behaviour
Personal Teleportation as a Weapon
Is exact Kanji stroke length important?
Implement the Thanos sorting algorithm
What is the intuitive meaning of having a linear relationship between the logs of two variables?
Coordinate position not precise
Can somebody explain Brexit in a few child-proof sentences?
Is a roofing delivery truck likely to crack my driveway slab?
Generic lambda vs generic function give different behaviour
Hostile work environment after whistle-blowing on coworker and our boss. What do I do?
Stripe Subscription object from Invoice object is null
Safely turning a JSON string into an objectCreate ArrayList from arrayAvoiding != null statementsHow do I call one constructor from another in Java?How do I test for an empty JavaScript object?Convert form data to JavaScript object with jQueryWhy can't Python parse this JSON data?How do I POST JSON data with Curl from a terminal/commandline to Test Spring REST?Stripe testing subscription Lumen 5.1stripe payment not working on live environment
I'm parsing event webhooks, and for the invoice.payment_succeeded
event I need to get the Invoice
object, the Subscription
object, and the Plan
object:
if (event.getType().equals("invoice.payment_succeeded")) {
Invoice invoice = (Invoice) event.getData().getObject();
Subscription subscription = invoice.getSubscriptionObject();
Plan plan = subscription.getPlan();
The problem is that the Subscription
object it's getting is null, so I can't get the plan, but in the webhook json, the invoice is clearly not null:
<com.stripe.model.Invoice@1862723626 id=in_1EAqJIJIKy5oOMbPbbnFDfhe> JSON: {
"id": "in_1EAqJIJIKy5oOMbPbbnFDfhe",
"object": "invoice",
"amount_due": 500,
"amount_paid": 500,
"amount_remaining": 0,
"application_fee": null,
"attempt_count": 1,
"attempted": true,
"auto_advance": false,
"billing": "charge_automatically",
"billing_reason": "subscription_create",
"charge": "ch_1EAqJIJIKy5oOMbPzJWZRmkB",
"created": 1551842448,
"currency": "usd",
"custom_fields": null,
"customer": "cus_EdkAtTWX48vPlL",
"date": 1551842448,
"default_source": null,
"deleted": null,
"description": null,
"discount": null,
"due_date": null,
"ending_balance": 0,
"finalized_at": 1551842448,
"footer": null,
"hosted_invoice_url": "https://pay.stripe.com/invoice/invst_Xk5QCVu0wZGe8yDKRjNku8do3v",
"invoice_pdf": "https://pay.stripe.com/invoice/invst_Xk5QCVu0wZGe8yDKRjNku8do3v/pdf",
"lines":
"object": "list",
"data": [
"id": "sli_b7542154e3401d",
"object": "line_item",
"amount": 500,
"currency": "usd",
"description": "1 ? Service (at $5.00 / month)",
"discountable": true,
"livemode": false,
"metadata": ,
"period":
"end": 1554520848,
"start": 1551842448
,
"plan":
"id": "plan_EYQ3ShMp3aS5RZ",
"object": "plan",
"active": true,
"amount": 500,
"billing_scheme": "per_unit",
"created": 1550523572,
"currency": "usd",
"interval": "month",
"interval_count": 1,
"livemode": false,
"metadata": ,
"nickname": "535281012935229482:540347090178670611",
"product": "prod_EYQ2LpVmAUc2Kh",
"tiers": null,
"tiers_mode": null,
"transform_usage": null,
"usage_type": "licensed",
"deleted": null,
"name": null,
"statement_description": null,
"statement_descriptor": null,
"trial_period_days": null
,
"proration": false,
"quantity": 1,
"subscription": "sub_Ee8abQjuYiFJXx",
"subscription_item": "si_Ee8aKEipOAG8hQ",
"type": "subscription"
],
"has_more": false,
"total_count": 1,
"url": "/v1/invoices/in_1EAqJIJIKy5oOMbPbbnFDfhe/lines",
"count": null,
"request_options": null,
"request_params": null
,
"livemode": false,
"metadata
java json stripe-payments
add a comment |
I'm parsing event webhooks, and for the invoice.payment_succeeded
event I need to get the Invoice
object, the Subscription
object, and the Plan
object:
if (event.getType().equals("invoice.payment_succeeded")) {
Invoice invoice = (Invoice) event.getData().getObject();
Subscription subscription = invoice.getSubscriptionObject();
Plan plan = subscription.getPlan();
The problem is that the Subscription
object it's getting is null, so I can't get the plan, but in the webhook json, the invoice is clearly not null:
<com.stripe.model.Invoice@1862723626 id=in_1EAqJIJIKy5oOMbPbbnFDfhe> JSON: {
"id": "in_1EAqJIJIKy5oOMbPbbnFDfhe",
"object": "invoice",
"amount_due": 500,
"amount_paid": 500,
"amount_remaining": 0,
"application_fee": null,
"attempt_count": 1,
"attempted": true,
"auto_advance": false,
"billing": "charge_automatically",
"billing_reason": "subscription_create",
"charge": "ch_1EAqJIJIKy5oOMbPzJWZRmkB",
"created": 1551842448,
"currency": "usd",
"custom_fields": null,
"customer": "cus_EdkAtTWX48vPlL",
"date": 1551842448,
"default_source": null,
"deleted": null,
"description": null,
"discount": null,
"due_date": null,
"ending_balance": 0,
"finalized_at": 1551842448,
"footer": null,
"hosted_invoice_url": "https://pay.stripe.com/invoice/invst_Xk5QCVu0wZGe8yDKRjNku8do3v",
"invoice_pdf": "https://pay.stripe.com/invoice/invst_Xk5QCVu0wZGe8yDKRjNku8do3v/pdf",
"lines":
"object": "list",
"data": [
"id": "sli_b7542154e3401d",
"object": "line_item",
"amount": 500,
"currency": "usd",
"description": "1 ? Service (at $5.00 / month)",
"discountable": true,
"livemode": false,
"metadata": ,
"period":
"end": 1554520848,
"start": 1551842448
,
"plan":
"id": "plan_EYQ3ShMp3aS5RZ",
"object": "plan",
"active": true,
"amount": 500,
"billing_scheme": "per_unit",
"created": 1550523572,
"currency": "usd",
"interval": "month",
"interval_count": 1,
"livemode": false,
"metadata": ,
"nickname": "535281012935229482:540347090178670611",
"product": "prod_EYQ2LpVmAUc2Kh",
"tiers": null,
"tiers_mode": null,
"transform_usage": null,
"usage_type": "licensed",
"deleted": null,
"name": null,
"statement_description": null,
"statement_descriptor": null,
"trial_period_days": null
,
"proration": false,
"quantity": 1,
"subscription": "sub_Ee8abQjuYiFJXx",
"subscription_item": "si_Ee8aKEipOAG8hQ",
"type": "subscription"
],
"has_more": false,
"total_count": 1,
"url": "/v1/invoices/in_1EAqJIJIKy5oOMbPbbnFDfhe/lines",
"count": null,
"request_options": null,
"request_params": null
,
"livemode": false,
"metadata
java json stripe-payments
Are you getting an error? What does your stack trace look like?
– Paul Asjes
Mar 6 at 5:57
It looks like you only copied and pasted a piece of theEvent
object. AnInvoice
object always contains the attributesubscription
, which is not present in the code you posted. Can you show us the whole object please?
– louisfischer
Mar 6 at 15:11
It does have the subscription attribute close to the bottom of the event.
– Patrick S.
Mar 6 at 16:38
add a comment |
I'm parsing event webhooks, and for the invoice.payment_succeeded
event I need to get the Invoice
object, the Subscription
object, and the Plan
object:
if (event.getType().equals("invoice.payment_succeeded")) {
Invoice invoice = (Invoice) event.getData().getObject();
Subscription subscription = invoice.getSubscriptionObject();
Plan plan = subscription.getPlan();
The problem is that the Subscription
object it's getting is null, so I can't get the plan, but in the webhook json, the invoice is clearly not null:
<com.stripe.model.Invoice@1862723626 id=in_1EAqJIJIKy5oOMbPbbnFDfhe> JSON: {
"id": "in_1EAqJIJIKy5oOMbPbbnFDfhe",
"object": "invoice",
"amount_due": 500,
"amount_paid": 500,
"amount_remaining": 0,
"application_fee": null,
"attempt_count": 1,
"attempted": true,
"auto_advance": false,
"billing": "charge_automatically",
"billing_reason": "subscription_create",
"charge": "ch_1EAqJIJIKy5oOMbPzJWZRmkB",
"created": 1551842448,
"currency": "usd",
"custom_fields": null,
"customer": "cus_EdkAtTWX48vPlL",
"date": 1551842448,
"default_source": null,
"deleted": null,
"description": null,
"discount": null,
"due_date": null,
"ending_balance": 0,
"finalized_at": 1551842448,
"footer": null,
"hosted_invoice_url": "https://pay.stripe.com/invoice/invst_Xk5QCVu0wZGe8yDKRjNku8do3v",
"invoice_pdf": "https://pay.stripe.com/invoice/invst_Xk5QCVu0wZGe8yDKRjNku8do3v/pdf",
"lines":
"object": "list",
"data": [
"id": "sli_b7542154e3401d",
"object": "line_item",
"amount": 500,
"currency": "usd",
"description": "1 ? Service (at $5.00 / month)",
"discountable": true,
"livemode": false,
"metadata": ,
"period":
"end": 1554520848,
"start": 1551842448
,
"plan":
"id": "plan_EYQ3ShMp3aS5RZ",
"object": "plan",
"active": true,
"amount": 500,
"billing_scheme": "per_unit",
"created": 1550523572,
"currency": "usd",
"interval": "month",
"interval_count": 1,
"livemode": false,
"metadata": ,
"nickname": "535281012935229482:540347090178670611",
"product": "prod_EYQ2LpVmAUc2Kh",
"tiers": null,
"tiers_mode": null,
"transform_usage": null,
"usage_type": "licensed",
"deleted": null,
"name": null,
"statement_description": null,
"statement_descriptor": null,
"trial_period_days": null
,
"proration": false,
"quantity": 1,
"subscription": "sub_Ee8abQjuYiFJXx",
"subscription_item": "si_Ee8aKEipOAG8hQ",
"type": "subscription"
],
"has_more": false,
"total_count": 1,
"url": "/v1/invoices/in_1EAqJIJIKy5oOMbPbbnFDfhe/lines",
"count": null,
"request_options": null,
"request_params": null
,
"livemode": false,
"metadata
java json stripe-payments
I'm parsing event webhooks, and for the invoice.payment_succeeded
event I need to get the Invoice
object, the Subscription
object, and the Plan
object:
if (event.getType().equals("invoice.payment_succeeded")) {
Invoice invoice = (Invoice) event.getData().getObject();
Subscription subscription = invoice.getSubscriptionObject();
Plan plan = subscription.getPlan();
The problem is that the Subscription
object it's getting is null, so I can't get the plan, but in the webhook json, the invoice is clearly not null:
<com.stripe.model.Invoice@1862723626 id=in_1EAqJIJIKy5oOMbPbbnFDfhe> JSON: {
"id": "in_1EAqJIJIKy5oOMbPbbnFDfhe",
"object": "invoice",
"amount_due": 500,
"amount_paid": 500,
"amount_remaining": 0,
"application_fee": null,
"attempt_count": 1,
"attempted": true,
"auto_advance": false,
"billing": "charge_automatically",
"billing_reason": "subscription_create",
"charge": "ch_1EAqJIJIKy5oOMbPzJWZRmkB",
"created": 1551842448,
"currency": "usd",
"custom_fields": null,
"customer": "cus_EdkAtTWX48vPlL",
"date": 1551842448,
"default_source": null,
"deleted": null,
"description": null,
"discount": null,
"due_date": null,
"ending_balance": 0,
"finalized_at": 1551842448,
"footer": null,
"hosted_invoice_url": "https://pay.stripe.com/invoice/invst_Xk5QCVu0wZGe8yDKRjNku8do3v",
"invoice_pdf": "https://pay.stripe.com/invoice/invst_Xk5QCVu0wZGe8yDKRjNku8do3v/pdf",
"lines":
"object": "list",
"data": [
"id": "sli_b7542154e3401d",
"object": "line_item",
"amount": 500,
"currency": "usd",
"description": "1 ? Service (at $5.00 / month)",
"discountable": true,
"livemode": false,
"metadata": ,
"period":
"end": 1554520848,
"start": 1551842448
,
"plan":
"id": "plan_EYQ3ShMp3aS5RZ",
"object": "plan",
"active": true,
"amount": 500,
"billing_scheme": "per_unit",
"created": 1550523572,
"currency": "usd",
"interval": "month",
"interval_count": 1,
"livemode": false,
"metadata": ,
"nickname": "535281012935229482:540347090178670611",
"product": "prod_EYQ2LpVmAUc2Kh",
"tiers": null,
"tiers_mode": null,
"transform_usage": null,
"usage_type": "licensed",
"deleted": null,
"name": null,
"statement_description": null,
"statement_descriptor": null,
"trial_period_days": null
,
"proration": false,
"quantity": 1,
"subscription": "sub_Ee8abQjuYiFJXx",
"subscription_item": "si_Ee8aKEipOAG8hQ",
"type": "subscription"
],
"has_more": false,
"total_count": 1,
"url": "/v1/invoices/in_1EAqJIJIKy5oOMbPbbnFDfhe/lines",
"count": null,
"request_options": null,
"request_params": null
,
"livemode": false,
"metadata
java json stripe-payments
java json stripe-payments
asked Mar 6 at 4:04
Patrick S.Patrick S.
92
92
Are you getting an error? What does your stack trace look like?
– Paul Asjes
Mar 6 at 5:57
It looks like you only copied and pasted a piece of theEvent
object. AnInvoice
object always contains the attributesubscription
, which is not present in the code you posted. Can you show us the whole object please?
– louisfischer
Mar 6 at 15:11
It does have the subscription attribute close to the bottom of the event.
– Patrick S.
Mar 6 at 16:38
add a comment |
Are you getting an error? What does your stack trace look like?
– Paul Asjes
Mar 6 at 5:57
It looks like you only copied and pasted a piece of theEvent
object. AnInvoice
object always contains the attributesubscription
, which is not present in the code you posted. Can you show us the whole object please?
– louisfischer
Mar 6 at 15:11
It does have the subscription attribute close to the bottom of the event.
– Patrick S.
Mar 6 at 16:38
Are you getting an error? What does your stack trace look like?
– Paul Asjes
Mar 6 at 5:57
Are you getting an error? What does your stack trace look like?
– Paul Asjes
Mar 6 at 5:57
It looks like you only copied and pasted a piece of the
Event
object. An Invoice
object always contains the attribute subscription
, which is not present in the code you posted. Can you show us the whole object please?– louisfischer
Mar 6 at 15:11
It looks like you only copied and pasted a piece of the
Event
object. An Invoice
object always contains the attribute subscription
, which is not present in the code you posted. Can you show us the whole object please?– louisfischer
Mar 6 at 15:11
It does have the subscription attribute close to the bottom of the event.
– Patrick S.
Mar 6 at 16:38
It does have the subscription attribute close to the bottom of the event.
– Patrick S.
Mar 6 at 16:38
add a comment |
2 Answers
2
active
oldest
votes
First of all the value of the subscription
attribute can be null, for example in the case of one-off invoices.
The whole Subscription
object is not included in the Invoice
object by default, only its identifier is. The Invoice
object contained in the Event
object follows the same rule. So you will need to retrieve the Subscription
with its identifier as described here
if (event.getType().equals("invoice.payment_succeeded"))
Invoice invoice = (Invoice) event.getData().getObject();
Subscription subscription = Subscription.retrieve(invoice.getSubscription());
The plan
attribute will only be set if the subscription contains a single plan.
Note that you can "expand" Stripe objects when retrieving them. See the section Expanding Objects of the Stripe API Reference.
add a comment |
It states in the docs the data will only contain the relevant object for your webhook.
In an invoice's case, it's the invoice object only. Luckily that contains the subscription
ID for you:
"subscription": "sub_Ee8abQjuYiFJXx",
You can use this ID to retrieve the data as
Subscription subscription = Subscription.retrieve("sub_Ee8abQjuYiFJXx");
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55015380%2fstripe-subscription-object-from-invoice-object-is-null%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
First of all the value of the subscription
attribute can be null, for example in the case of one-off invoices.
The whole Subscription
object is not included in the Invoice
object by default, only its identifier is. The Invoice
object contained in the Event
object follows the same rule. So you will need to retrieve the Subscription
with its identifier as described here
if (event.getType().equals("invoice.payment_succeeded"))
Invoice invoice = (Invoice) event.getData().getObject();
Subscription subscription = Subscription.retrieve(invoice.getSubscription());
The plan
attribute will only be set if the subscription contains a single plan.
Note that you can "expand" Stripe objects when retrieving them. See the section Expanding Objects of the Stripe API Reference.
add a comment |
First of all the value of the subscription
attribute can be null, for example in the case of one-off invoices.
The whole Subscription
object is not included in the Invoice
object by default, only its identifier is. The Invoice
object contained in the Event
object follows the same rule. So you will need to retrieve the Subscription
with its identifier as described here
if (event.getType().equals("invoice.payment_succeeded"))
Invoice invoice = (Invoice) event.getData().getObject();
Subscription subscription = Subscription.retrieve(invoice.getSubscription());
The plan
attribute will only be set if the subscription contains a single plan.
Note that you can "expand" Stripe objects when retrieving them. See the section Expanding Objects of the Stripe API Reference.
add a comment |
First of all the value of the subscription
attribute can be null, for example in the case of one-off invoices.
The whole Subscription
object is not included in the Invoice
object by default, only its identifier is. The Invoice
object contained in the Event
object follows the same rule. So you will need to retrieve the Subscription
with its identifier as described here
if (event.getType().equals("invoice.payment_succeeded"))
Invoice invoice = (Invoice) event.getData().getObject();
Subscription subscription = Subscription.retrieve(invoice.getSubscription());
The plan
attribute will only be set if the subscription contains a single plan.
Note that you can "expand" Stripe objects when retrieving them. See the section Expanding Objects of the Stripe API Reference.
First of all the value of the subscription
attribute can be null, for example in the case of one-off invoices.
The whole Subscription
object is not included in the Invoice
object by default, only its identifier is. The Invoice
object contained in the Event
object follows the same rule. So you will need to retrieve the Subscription
with its identifier as described here
if (event.getType().equals("invoice.payment_succeeded"))
Invoice invoice = (Invoice) event.getData().getObject();
Subscription subscription = Subscription.retrieve(invoice.getSubscription());
The plan
attribute will only be set if the subscription contains a single plan.
Note that you can "expand" Stripe objects when retrieving them. See the section Expanding Objects of the Stripe API Reference.
answered Mar 8 at 9:29
louisfischerlouisfischer
1,11811329
1,11811329
add a comment |
add a comment |
It states in the docs the data will only contain the relevant object for your webhook.
In an invoice's case, it's the invoice object only. Luckily that contains the subscription
ID for you:
"subscription": "sub_Ee8abQjuYiFJXx",
You can use this ID to retrieve the data as
Subscription subscription = Subscription.retrieve("sub_Ee8abQjuYiFJXx");
add a comment |
It states in the docs the data will only contain the relevant object for your webhook.
In an invoice's case, it's the invoice object only. Luckily that contains the subscription
ID for you:
"subscription": "sub_Ee8abQjuYiFJXx",
You can use this ID to retrieve the data as
Subscription subscription = Subscription.retrieve("sub_Ee8abQjuYiFJXx");
add a comment |
It states in the docs the data will only contain the relevant object for your webhook.
In an invoice's case, it's the invoice object only. Luckily that contains the subscription
ID for you:
"subscription": "sub_Ee8abQjuYiFJXx",
You can use this ID to retrieve the data as
Subscription subscription = Subscription.retrieve("sub_Ee8abQjuYiFJXx");
It states in the docs the data will only contain the relevant object for your webhook.
In an invoice's case, it's the invoice object only. Luckily that contains the subscription
ID for you:
"subscription": "sub_Ee8abQjuYiFJXx",
You can use this ID to retrieve the data as
Subscription subscription = Subscription.retrieve("sub_Ee8abQjuYiFJXx");
answered Mar 6 at 8:26
MátéMáté
1,65631322
1,65631322
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55015380%2fstripe-subscription-object-from-invoice-object-is-null%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Are you getting an error? What does your stack trace look like?
– Paul Asjes
Mar 6 at 5:57
It looks like you only copied and pasted a piece of the
Event
object. AnInvoice
object always contains the attributesubscription
, which is not present in the code you posted. Can you show us the whole object please?– louisfischer
Mar 6 at 15:11
It does have the subscription attribute close to the bottom of the event.
– Patrick S.
Mar 6 at 16:38