Recurring account facing this issue.

AMYk87
Contributor
Contributor
in Recurring account facing this issue. 
 
$enableSandbox = true; // change it to false when go live.....thats it

            $paypalConfig = [
                'email'      => 'email removed as was not allowed in forum', 
                'return_url' => base_url('front/pckg_upd_payment_successful'),
                'cancel_url' => base_url('front/payment_cancelled'),
                'notify_url' => base_url('front/payments')
            ];

            $paypalUrl = $enableSandbox ? '
            $itemName = "Weekly payment";
            $itemAmount = 1;

            $data = [];
            $data['business'] = $paypalConfig['email'];
            $data['return'] = stripslashes($paypalConfig['return_url']);
            $data['cancel_return'] = stripslashes($paypalConfig['cancel_url']);
            $data['notify_url'] = stripslashes($paypalConfig['notify_url']);
            $data['item_name'] = $itemName;
            $data['amount'] = $itemAmount;
            $data['currency_code'] = 'USD';
            $data['cmd'] = '_xclick';
            $data['no_note'] = '1';
            $data['lc'] = 'UK';
            $data['rm'] = '2';
            $data['bn'] = 'PP-BuyNowBF:btn_buynow_LG.gif:NonHostedGuest';
            $data['first_name'] = "harsh";
            $data['last_name'] = "sharma";
            $data['payer_email'] = "";
            $data['item_number'] = '456789';
            
            $data['a3'] = 1;
            $data['t3'] = "W";
            $data['p3'] = 52;
            
            $queryString = http_build_query($data);
            redirect($paypalUrl . '?' . $queryString);
 

image.png
image.png
 
Response we get from paypal
 
image.png
 
the recurring payment not showing here
 
image.png
Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.