The flow for subscriptions is a bit different. First you would need to create a RecurringOrder
record using DataService.add
. Then you would use InvoiceService.createInvoiceForRecurring
which will create an invoice for subscription record. Lastly you would call InvoiceService.chargeInvoice
to collect payment on the subscription invoice.