Edit an existing billing cycle and add a line item success. But Billing Attempt failed

Hello,

Our team using this doc: https://shopify.dev/docs/apps/subscriptions/billing-cycles to editing a billing cycle.

I have edited subscription contract successfully. New a line item has been added to contract. But when I try to “Billing Attempt” (create order), I got this message:

{
  "id": 15251669151,
  "admin_graphql_api_id": "gid://shopify/SubscriptionBillingAttempt/15251669151",
  "idempotency_key": "DhGKNmewsw5ar8Ekz8n4L2kFmmiUiuXroH0Ald6i",
  "order_id": null,
  "admin_graphql_api_order_id": null,
  "subscription_contract_id": 5651759263,
  "admin_graphql_api_subscription_contract_id": "gid://shopify/SubscriptionContract/5651759263",
  "ready": true,
  "error_message": "There was a problem processing the payment for this billing attempt",
  "error_code": "unexpected_error"
}

I don’t know why I get this error. Could someone help me how to fix it? Thank you so much!

Hello @nkhoai !

Unexpected errors are irritating! They usually happen when our API reaches out to a third party service and they return an unexpected error that our API cannot consume. Since it’s dealing with billing, I would first look into completing account setup up. These exceptions, unfortunately, involve trying a myriad of solutions until one sticks.

Appreciate your patience!