Closed phcaraujo closed 4 years ago
@phcaraujo This is not a location for support for custom code. You might need to look into your PHP error logs to see if you are missing any required fields. For instance, this is how our Free Downloads extension creates payments prior to adding items to it:
$payment = new EDD_Payment;
$payment->first_name = $user_first;
$payment->last_name = $user_last;
$payment->user_id = $user ? $user->ID : 0;
$payment->email = $email;
$payment->total = 0;
$payment->gateway = 'manual';
$payment->status = 'pending';
@phcaraujo This is not a location for support for custom code. You might need to look into your PHP error logs to see if you are missing any required fields. For instance, this is how our Free Downloads extension creates payments prior to adding items to it:
$payment = new EDD_Payment; $payment->first_name = $user_first; $payment->last_name = $user_last; $payment->user_id = $user ? $user->ID : 0; $payment->email = $email; $payment->total = 0; $payment->gateway = 'manual'; $payment->status = 'pending';
There is no PHP error, the function is correct. It is as if I could not use the EDD_Payment class.
I have already sent a support request but have never responded yet.
I am integrating my website with hotmart, I am creating a payment manually, however, it is not running.
Would you help me?