I updated Stripe to the new check out and now I have an issue on my CURL statement which is below. It's run in xbasic from a button press.
The statement works and I get no errors, but when I look at the charges in STRIPE the Description field contains the Payment Intent and not the Description defined in the statement. If I look at the events from Stripe I don't see any of the "POSTFIELDS" data passed in (see Below)
New Payment created event
The statement works and I get no errors, but when I look at the charges in STRIPE the Description field contains the Payment Intent and not the Description defined in the statement. If I look at the events from Stripe I don't see any of the "POSTFIELDS" data passed in (see Below)
Code:
ce = extension::Curl.Init() ce.setOpt("URL","https://api.stripe.com/v1/checkout/sessions") ce.setOpt("NOPROGRESS",1) ce.setOpt("USERPWD",sessioin.stripeprivatekey) dim posted_fields as c = ("customer_email="+email+"&client_reference_id="+customer+"&payment_method_types[]=card&line_items[][name]="+name+"&line_items[][description]="+description+"&line_items[][images][]="+image+"&line_items[][amount]="+amount+"&line_items[][currency]=usd&line_items[][quantity]=1&success_url="+successurl+"&cancel_url=https://example.com/cancel") ce.setOpt("POSTFIELDS",posted_fields) ce.setOpt("POSTFIELDSIZE_LARGE", len(posted_fields) ) ce.setOpt("USERAGENT","curl/7.34.0") ce.setOpt("MAXREDIRS",50) ce.setOpt("CAINFO",a5.Get_Exe_Path()+"\caroot\ca-cert.pem") ce.setOpt("CAPATH",a5.Get_Exe_Path()+"\caroot") ce.setOpt("SSL_VERIFYPEER",0) ce.setOpt("SSL_VERIFYHOST",0) ce.setOpt("TCP_KEEPALIVE",1) ce.SetOpt("FILE",cf_1) flag_1 = ce.Exec() if flag_1 then debug(1) dim headers as c dim contents as c headers = cf_1.GetHeaders() contents = cf_1.GetContent()
New Payment created event
Code:
{ "object": { "id": [URL="https://dashboard.stripe.com/test/payments/pi_1IRfdGBwMcUNEf3J21QSt6Dl"]"pi_1IRfdGBwMcUNEf3J21QSX6Dl"[/URL], "object": "payment_intent", "allowed_source_types": [ "card" ], "amount": 52600, "amount_capturable": 0, "amount_received": 0, "application": null, "application_fee_amount": null, "canceled_at": null, "cancellation_reason": null, "capture_method": "automatic", "charges": { "object": "list", "data": [ ], "has_more": false, "total_count": 0, "url": "/v1/charges?payment_intent=pi_1IRfdGBwMcUNEf3J21QSX6Dl" }, "client_secret": "pi_1IRfdGBwMcUNEf3J21QSt6Dl_secret_XXXXXXXXXXXXXXXXXX", "confirmation_method": "automatic", "created": 1614958322, "currency": "usd", "customer": null, "description": null, "invoice": null, "last_payment_error": null, "livemode": false, "metadata": { }, "next_action": null, "next_source_action": null, "on_behalf_of": null, "payment_method": null, "payment_method_options": { "card": { "installments": null, "network": null, "request_three_d_secure": "automatic" } }, "payment_method_types": [ "card" ], "receipt_email": null, "review": null, "setup_future_usage": null, "shipping": null, "source": null, "statement_descriptor": null, "statement_descriptor_suffix": null, "status": "requires_source", "transfer_data": null, "transfer_group": null } }
Comment