Why is the HubSpot subscription sync failing with a "No such Customer" error?
The HubSpot subscription sync can fail with an error such as:
"No such Customer cus_ObsTqjPf2D7XCS."
This occurs when the payment_gateway_id used during the sync does not belong to the correct Sandbox Stripe account.
When Ordway receives the payment_gateway_id, it attempts to retrieve the associated payment methods from Stripe. If the ID belongs to the Production Stripe account instead of the Sandbox account, Stripe cannot find the customer in the Sandbox environment and returns an error.
How can I resolve the sync error?
- Verify that the payment_gateway_id used in the sync belongs to the correct Sandbox Stripe account.
- If the ID belongs to the Production environment, update the sync configuration with the correct Sandbox payment_gateway_id.
- Save the updated configuration.
- Retry the HubSpot subscription sync.
Result
Once the payment_gateway_id matches the correct Sandbox Stripe account, Ordway can retrieve the associated Stripe customer and payment methods, allowing the HubSpot subscription sync to proceed successfully.
Comments
0 comments
Please sign in to leave a comment.