chargebee / chargebee-typescript

Typescript library for the Chargebee API.
https://apidocs.chargebee.com/docs/api?lang=typescript
MIT License
22 stars 16 forks source link

Unable to open hosted page to update payment method #13

Closed tuanlc closed 3 years ago

tuanlc commented 3 years ago

Hello ChargeBee team,

I've encountered an issue when opening a hosted page to update the client's payment method. This is the response from ChargeBee:

{
   message: 'Update Payment Method is not supported for V3 Hosted pages',
   type: 'invalid_request',
   api_error_code: 'invalid_request',
   error_code: 'update_payment_method_not_supported_for_v3_hp',
   error_msg: 'Update Payment Method is not supported for V3 Hosted pages',
   http_status_code: 400
 }

As I checked, the version of Chargebee API that this library is used is v2. So, could you please tell me why did I get this error? I'm kindly looking forward to you soon. Thank you!

CJohnson25 commented 3 years ago

I am also running into the same issue. using v2 of the api, and v2.0.8 of this project.

CJohnson25 commented 3 years ago

Was able to solve the problem by using the manage_payment_sources method. It seems documentation does mention this. https://apidocs.chargebee.com/docs/api/hosted_pages#update_payment_method

cb-rakesh commented 3 years ago

Hello ChargeBee team,

I've encountered an issue when opening a hosted page to update the client's payment method. This is the response from ChargeBee:

{
   message: 'Update Payment Method is not supported for V3 Hosted pages',
   type: 'invalid_request',
   api_error_code: 'invalid_request',
   error_code: 'update_payment_method_not_supported_for_v3_hp',
   error_msg: 'Update Payment Method is not supported for V3 Hosted pages',
   http_status_code: 400
 }

As I checked, the version of Chargebee API that this library is used is v2. So, could you please tell me why did I get this error? I'm kindly looking forward to you soon. Thank you!

Are you still facing this issue? If not, can we close this?

tuanlc commented 3 years ago

Hello, No, I am not. I resolved the issue by checking more documentation from ChargeBee about the payment source and 3DS. I will close this ticket. Thank you!