Skip to content

Commit de5b68d

Browse files
authored
Merge pull request #2 from tkalejaiye/patch-1
Fixed issue where currency was showing in place of customer name on r…
2 parents 7365b68 + 115b464 commit de5b68d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/class-paystack-forms-public.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3580,7 +3580,7 @@ function kkd_pff_paystack_confirm_payment()
35803580
$sendreceipt = get_post_meta($payment_array->post_id, '_sendreceipt', true);
35813581
if ($sendreceipt == 'yes') {
35823582
$decoded = json_decode($payment_array->metadata);
3583-
$fullname = $decoded[0]->value;
3583+
$fullname = $decoded[1]->value;
35843584
kkd_pff_paystack_send_receipt($payment_array->post_id, $currency, $amount_paid, $fullname, $payment_array->email, $paystack_ref, $payment_array->metadata);
35853585
kkd_pff_paystack_send_receipt_owner($payment_array->post_id, $currency, $amount_paid, $fullname, $payment_array->email, $paystack_ref, $payment_array->metadata);
35863586
}

0 commit comments

Comments
 (0)