@bartek.dev This is the error I keep on getting posted below. I ask attached a screenshot of the parameters in my POST call.
Raw response for the API
Status code 400
{
“error”: {
“message”: "Invalid request (check that your POST content type is application/x-www-form-urlencoded). If you have any questions, we can help at https://support.stripe.com/.",
“type”: “invalid_request_error”
}
}
what if you setup up the payment param key as this `payment_method_types[0]’ and uncheck the ‘private’
Not really sure what you mean. If sth is wrong with your account setup the response from the api should have some details about that if you initialize the call correctly
Okay, that seemed to work, but now I get line.item.quantity issue. I guess this is going to be the point I run into errors after solving one.
Status code 400
{
“error”: {
“message”: "Quantity is required. Add quantity to line_items[1]",
“param”: “line_items[1]”,
“type”: “invalid_request_error”
}
}
I was able to solve the last issue I was having by adding 4 line.item.quantity parameters since I have 4 items a user can purchase. Do you know away around being able more than one discount.coupon in my API call?
@bartek.dev did you go through the process of using stripes prebuilt checkout page? If not, and you did it yourself? How did you do it? Because on my form when I hit complete payment it does not take me to the checkout pass where users can enter the coupon code.
If you are building transparent payments then you have different setup than mine. Search the forum + youtube - this is pretty basic and solved dozens of time already. If you want to use Stripe Checkout page, see the topic I shared above. There is step by step solution there
Sorry for the late response. I have been able to figure everything out in dev mode. How can I get this to work when I want this to work in live mode? I get this error when I add a live product key to my api call.
Raw response for the API
Status code 400
{
“error”: {
“code”: “resource_missing”,
“doc_url”: “https://stripe.com/docs/error-codes/resource-missing”,
“message”: “No such price: ‘price_1IJQOYF0uyp2jlqjGQLBCSxW’; a similar object exists in live mode, but a test mode key was used to make this request.”,
“param”: “line_items[0][price]”,
“type”: “invalid_request_error”
}
}
You should initiate the call with the dev data. If it works you don’t have to change anything in API connector.
Also, use the private key in header as authentication method so you can have the dev mode working and live mode working.
If you don’t have price object in your live mode it will not work. So when using the created API call within the workflow action you have to pass the right data. And it should work if the dev mode is working as well.
Which made me think I at least got the call initialized and setup properly…however, when I try to use the call I get the same error I was previously but in the debugger