The ApplicationCharge resource facilitates one-time charges. This type of charge is recommended for apps that aren’t billed on a recurring basis. You can create an application charge by sending a request with the name the charge should appear under, the price your app is charging, and a return URL where Shoplazza redirects the merchant after the charge is accepted. After you've created the charge, redirect the merchant to the confirmation URL returned by Shoplazza. If the charge is declined, then Shoplazza redirects the merchant and provides a notification message that the app charge was declined. For step-by-step guidance that walks through this flow using examples, see our implementation guide.

For testing purposes you can include "test": true when creating the charge. This prevents the credit card from being charged. Test shops and demo shops can't be charged.

Application Charge

idstringThe ID of the application charge.
application_idstringThe Application ID of the application charge.
namestringThe application charge name.
pricestringThe price of the application charge.
return_urlstringThe URL where the merchant is redirected after accepting a charge.
statusstringThe status of the application charge.
pending, active, declined, expired,cancelled,paid_failed,paying
testboolWhether the application charge is a test transaction.
created_atdateThe time this fulfillment created, ISO-8601 format
updated_atdateThe time this fulfillment last updated, ISO-8601 format