Commit 5779db84 authored by Michael Iseard's avatar Michael Iseard
Browse files

Rename action

parent 2f3a722c
......@@ -169,7 +169,7 @@ class KudosDonations {
*/
private function define_mollie_hooks() {
add_action( 'kudos_mollie_paid_email', [ PaymentService::class, 'process_transaction' ], 10, 1 );
add_action( 'kudos_mollie_transaction_paid', [ PaymentService::class, 'process_transaction' ], 10, 1 );
add_action( 'wp_ajax_nopriv_submit_payment', [ PaymentService::factory(), 'submit_payment' ] );
add_action( 'wp_ajax_submit_payment', [ PaymentService::factory(), 'submit_payment' ] );
......
......@@ -507,7 +507,7 @@ class MollieVendor extends AbstractVendor {
if ( $payment->isPaid() && ! $payment->hasRefunds() && ! $payment->hasChargebacks() ) {
// Get schedule processing for later.
Utils::schedule_action( strtotime( '+1 minute' ), 'kudos_mollie_paid_email', [ $order_id ] );
Utils::schedule_action( strtotime( '+1 minute' ), 'kudos_mollie_transaction_paid', [ $order_id ] );
// Set up recurring payment if sequence is first.
if ( $payment->hasSequenceTypeFirst() ) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment