- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
I am using ActiveZuora Ruby gem
Trying to add check payment to the existing account without payment (default payment method nil)
payment_method = ActiveZuora::PaymentMethod.new(account_id: '<some id>', type: 'Check')
payment_method.save!
RuntimeError: Could Not Save Zuora Object: Can not create an electronic payment method with type: Check
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello @osa adding an "external" payment method like Check, Cash or Other works a bit different, you don't create them. These payment methods have a single pre-existing ID that needs to be associated with your chosen account.
To retrieve these IDs, execute this query first:
select id, name from paymentmethod where accountid = null
Now that you have the list of external payment methods, all you need to do is update() the account's DefaultPaymentMethodId field with the ID of Check.
Supporting reference:
https://knowledgecenter.zuora.com/CB_Billing/L_Payment_Methods/E_Define_Payment_Methods
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello @osa adding an "external" payment method like Check, Cash or Other works a bit different, you don't create them. These payment methods have a single pre-existing ID that needs to be associated with your chosen account.
To retrieve these IDs, execute this query first:
select id, name from paymentmethod where accountid = null
Now that you have the list of external payment methods, all you need to do is update() the account's DefaultPaymentMethodId field with the ID of Check.
Supporting reference:
https://knowledgecenter.zuora.com/CB_Billing/L_Payment_Methods/E_Define_Payment_Methods
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √