Home › Forums › Stripe Payments Plugin › Form defaults / parameters › Reply To: Form defaults / parameters
December 10, 2020 at 6:06 pm
#3455
alexanderfoxc
Participant
Hi.
You can change customer name and donation amount by hooking to asp-button-output-data-ready
filter.
Here’s quick example how to change customer name: https://github.com/Arsenal21/stripe-payments-enhancements/blob/master/asp-prefill-customer-name-and-email/asp-prefill-customer-name-and-email.php
You can change donation amount like this:
$data['item_price'] = 10000; //amount should be in cents