Jump to content
Oscar

Add credit via API

Recommended Posts

It's already setup so there is a credit added to the customers account after you record the payment and once it's applied to an invoice, it says the original payment method and amount applied to it.

Share this post


Link to post
Share on other sites

You should create a new custom payment type if you haven't already, under Settings > System > Payment Types. Then when you create the transaction by calling Transactions::add over the API, include in $vars the keys type and transaction_type_id. type would be set to "other" and transaction_type_id would be set to the integer ID representing the payment type you created under Settings > System > Payment Types.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×