I am using ActiveZuora Ruby gem
Trying to add check payment to the existing account without payment (default payment method nil)
payment_method = ActiveZuora:aymentMethod.new(account_id: '<some id>', type: 'Check')
RuntimeError: Could Not Save Zuora Object: Can not create an electronic payment method with type: Check
Solved! Go to Solution.
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.
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √