Subscription payment link is not working

I created a payment link using the checkout API, and when someone make the payment, an error occurred: “Sorry. Your order didn’t go through. Please try again”. He tried multiple times and received the same error. The trace ID is as follows: FbPdcdPMXHRga. Please let me know where the problem is, thank you.

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Guidelines and Limitations
Checkout API
Checkout API

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

What’s your application ID and what’s what’s the subscription_plan_variation_id your passing in? :slight_smile:

application ID: sq0idp-PI2v0lI-b_B9dY56ztio7Q

subscription_plan_variation_id: EEDCSR2HTS72C727WG45LFVI

Every looks good from what I can see. If on checkout they inspect he page are there any errors on the network tab? If so what is the response? Is it INVALID_CARD_DATA? :slight_smile:

response:{
“error”: “Client error: POST https:\/\/[connect.squareup.com](http://connect.squareup.com)\/v2\/subscriptions resulted in a 400 Bad Request response:\n{"errors": [{"code": "CONFLICTING_PARAMETERS","detail": "Phases with RELATIVE pricing type must have phases on the subsc (truncated…)\n”
}

I have recreated a link, and I have tried to make a payment with my own bank card, but I got the same error.

The screenshot you shared was of the headers. If you click on the response what’s the error message? :slight_smile:

error message:{
“error”: “Client error: POST https:\/\/[connect.squareup.com](http://connect.squareup.com)\/v2\/subscriptions resulted in a 400 Bad Request response:\n{"errors": [{"code": "CONFLICTING_PARAMETERS","detail": "Phases with RELATIVE pricing type must have phases on the subsc (truncated…)\n”
}

Okay, so the error has to do with the billing of your subscription. What are the phases you have? Can you provide the subscription and the subscription_variation. :slight_smile:

subscription_variation_id is EEDCSR2HTS72C727WG45LFVI, can you query specific information with this ID? If you need any other information, I can provide it to you.

Yeah, taking a look! :slight_smile:

Hi,

Is there any update on this? Looking forward to your reply