_edds_fake_process_purchase_step()
When dealing with payments certain aspects only work if the payment is being created inside the edd_process_purchase_form()
function.
Description Description
Since this gateway uses multiple steps via AJAX requests this context gets lost. Calling this function "fakes" that we are still in this process when creating a new payment.
Mainly this prevents edd_insert_payment()
from creating multiple customers for the same user by ensuring the checkout email address is added to the existing customer.
Source Source
File: includes/gateways/stripe/includes/compat.php
Changelog Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |