x

Using Transaction API and Order API, can I charge a total amount minus a previous deposit

I have a website which a person can place an online order. A deposit is charged immediately (a complicated calculation but approx 50%). For the final billing I want to charge for the items purchased, taxes and discounts but the deposit needs to be subtracted from the total money. Is there a way to do this?

 

1,232 Views
Message 1 of 3
Report
1 Best Answer
Admin

Best Answer

Hi @my3kidsdad. Unfortunately, Square will not be able handle this for you. When I escalated this to our API team they mentioned you would need to do two charges for this and calculate the amounts for each.

 

So first, you could calculate the deposit, create an order and charge the amount (and this might be better suited to saving a card on file and charging the card on file the deposit).

 

Then, whenever your need to charge the balance you'll need to calculate the remaining amount themselves and charge the card on file.

 

If you don’t save the card on file, you would have to request that the customer manually enters their credit card number both times.

 

Here is the documention about using card on file: https://developer.squareup.com/docs/transactions-api/cookbook/save-cards-on-file

And this is the documentions to charge a card on file https://developer.squareup.com/docs/transactions-api/cookbook/charge-cards-on-file. 

️ Helen
Seller Community Manager

Did you find help in the Seller Community? Mark a Best Answer to help others.

View Best Answer >

1,200 Views
Message 2 of 3
Report
2 REPLIES 2
Admin

Best Answer

Hi @my3kidsdad. Unfortunately, Square will not be able handle this for you. When I escalated this to our API team they mentioned you would need to do two charges for this and calculate the amounts for each.

 

So first, you could calculate the deposit, create an order and charge the amount (and this might be better suited to saving a card on file and charging the card on file the deposit).

 

Then, whenever your need to charge the balance you'll need to calculate the remaining amount themselves and charge the card on file.

 

If you don’t save the card on file, you would have to request that the customer manually enters their credit card number both times.

 

Here is the documention about using card on file: https://developer.squareup.com/docs/transactions-api/cookbook/save-cards-on-file

And this is the documentions to charge a card on file https://developer.squareup.com/docs/transactions-api/cookbook/charge-cards-on-file. 

️ Helen
Seller Community Manager

Did you find help in the Seller Community? Mark a Best Answer to help others.
1,201 Views
Message 2 of 3
Report

Thank you.

1,183 Views
Message 3 of 3
Report