All,
I’m using the quickstart app to generate payments to my sandbox. I’m confused as to the request and response objects. I can’t seem to change the amount that is being charged. On the dashboard in transactions, it always shows 1.00. In the response I get, it show ‘100’. AM I to assume the 00 are the cents or does the sandbox always just returns 100?
Also, in the ‘createPayment’ I’m trying to adjust the amount charged. I added the following node but I’m getting bad request error:
“amount_money”: //ALso tried “amountMoney”
{
“amount”: 115,
“currency”: “USD”
},
Is there any way foor me to change the amount charged?
Thanks,
Jeff
I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:
Additional Documentation
Make your First API Call
Customize the Checkout Amount
Cash App Payments
If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.
All,
OK, I re-read the docs and it does indeed indicate that the result is in cents so the 00 is correct. However, I still can’t seem to change the amount it’s charging. Is there any way to do that?
Another question I forgot to ask in the response is about the receipt URL. When I go to that URL in a browser I get ‘Page Not Found’. Is this suppossed to be available?
Thanks,
Jeff
You can change the amount charged which is in the server.js file.
Bryan,
Thanks, I think I can get that working. How about the receipt URL? I assumed I could copy/paste it into a browser to view the receipts but it doesn’t load. Any tricks for displaying/emailing the link so that it pops up.
Thanks,
Jeff
Hey Jeff! The receipt URL is not currently supported in Sandbox. You’ll need to use Production if you’d like to see what receipts look like.