Hi gents,
we’re evaluating invoiceninja for us. In fact we don’t need the gui of invoice ninja as we have a marketplace where we’re selling different products.
Means we would like to use invoiceninja fully via api.
We checked the api docs and understand the most important important api requests, like create customer accounts, create invoices etc.
We want to use a payment gateway like stripe or other ones to request the payment of the customers.
Is it possible with the invoice ninja api to save the payment details?
we would like to ask the customer to add his credit card or direct debit details in our plattform and store those details in invoice ninja.
That’s too bad, we need to design the app this way to be PCI compliant. The card details are stored by the payment gateway, we can’t have them go through our API.
If you are only passing the payment token, and not payment details such as credit card numbers. this is supported. We have exposed in the API the token route so this is a supported use case.
The other way to stay compliant would be to use our endpoint which pulls in your customer and their payment methods from Stripe.
1st: create the customer in ninja
2nd IF customers selects creditcard: create the customer in stripe and add credit card details
IF customer select SEPA add the details to ninja.
But how can the customer in ninja and stripe linked?
When you create the invoice via API, you can configure whether you want to also auto_bill the invoice. We will use the terms (10days net say) and bill on the 10th day if there is a valid payment method on file.