#Cyril Dave

1 messages · Page 1 of 1 (latest)

stone cairnBOT
near spruce
#

do you have an example where this did not charge the customer? like the subscription sub_xxx ID?

bronze notch
#

I only get the logs, is this the one that you needed?

near spruce
#

no, I need the ID pasted here

#

sub_xxx like in your screenshot

bronze notch
#

here it is : sub_1Nkv4SE1EGWouBAtDrbufLM1

near spruce
#

there's no data in the POST request, so you didn't actually change anything

#

you say you are sending
{ "billing_cycle_anchor": "now", "proration_behavior": "always_invoice" }

#

but as you see from that request log, you are not , so your code or whatever you used to send the request did not work

bronze notch
#

I used a post request

near spruce
#

yes, but the HTTP POST body is empty.

bronze notch
#

ok, thanks

#

I have manage to make the call and the payment works but it only paid $86.97, it should be $199.00

near spruce
#

if you look at the Invoice it will include line items that break down why the amount is what it is, for example proration("unsused time on X/Remaining time on X")

bronze notch
#

but when I used the stripe dashboard it billed me $199.00, please see attached file for my setup in stripe dashboard.

#

how should I do it in api call?

near spruce
#

maybe you want to use proration_behavior:"none" instead, in the API call, if your goal is to not have "prorate changes" used?

bronze notch
#

ok I will try, thanks

#

It's working now, thank you very much for the support.

#

I have another concern, can I not auto pay it and create a stripe link so that the user can pay it manually?

#

The client might want to manually pay for the advance renewal of his subscription.

near spruce
#

not in an easy way, no