PaddleHQ / paddle-js-wrapper

Wrapper to load Paddle.js as a module and use TypeScript definitions when working with methods.
Apache License 2.0
44 stars 6 forks source link

[Bug]: Sudden 400 Error on Transaction API and Account Reset to New Status in Dashboard #73

Closed FarhanAtAppyHigh closed 1 month ago

FarhanAtAppyHigh commented 1 month ago

What happened?

Issue Summary

Our account payments were functioning properly until yesterday. However, as of today, calls to the https://checkout-service.paddle.com/transaction-checkout API are failing with a 400 error response. Additionally, our account is unexpectedly being treated as a new account in the Paddle dashboard, where we are being prompted with "Get Started" tour guides.

We have not received any emails or notifications regarding this issue, and it appears to have occurred without any prior indication or reports.

Steps to reproduce

  1. Attempt to initiate a payment using your package which internally uses the https://checkout-service.paddle.com/transaction-checkout API.
  2. Observe that the API returns a 400 error with transaction_checkout_not_enabled.

What did you expect to happen?

Payments should proceed as they did prior to today without throwing a validation error.

How are you integrating?

NextJS with paddle-js-wrapper and checkouts are getting created from our NodeJS BE

Logs

CURL of API getting fail

curl 'https://checkout-service.paddle.com/transaction-checkout' \
  -H 'accept: application/json, text/plain, */*' \
  -H 'accept-language: en-GB,en-US;q=0.9,en;q=0.8' \
  -H 'content-type: application/json' \
  -H 'correlation-id: <OUR_CORRELATION_ID> \
  -H 'origin: https://buy.paddle.com' \
  -H 'paddle-client: token: <OUR_LIVE_TOKEN>' \
  -H 'priority: u=1, i' \
  -H 'referer: https://buy.paddle.com/' \
  -H 'sec-ch-ua: "Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "macOS"' \
  -H 'sec-fetch-dest: empty' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-site: same-site' \
  -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36' \
  --data-raw '{"data":{"transaction_id":"txn_01jbesrden5tc507qdchjbnspn","settings":{"theme":"light","allow_logout":false,"show_add_discounts":true,"allow_discount_removal":true,"show_add_tax_id":true,"display_mode":"wide-overlay","variant":"multi-page","locale":"en","source_page":"https://www.phot.ai/pricing"},"custom_data":"{\"fp_tid\":null}"}}'