I have been doing application fees with the regular Square credit card payments online. My question is can you do this with CashApp also? I can't tell from the documentation if there is a way to do this in anyway. If you don't know what an application fee is, it's a fee added onto the total that goes to the developer in question.
Below is how they do it with the Web Payments API.
https://developer.squareup.com/docs/web-payments/add-cash-app-pay
function buildPaymentRequest(payments) {
const paymentRequest = payments.paymentRequest({
countryCode: 'US',
currencyCode: 'USD',
total: {
amount: '1.00',
label: 'Total',
}
});
return paymentRequest;
}
async function initializeCashApp(payments) {
const paymentRequest = buildPaymentRequest(payments)
const cashAppPay = await payments.cashAppPay(paymentRequest,{
redirectURL: 'https://my.website/checkout',
referenceId: 'my-website-00000001',
});
await cashAppPay.attach('#cash-app-pay');
return cashAppPay;
}