Page 1 of 1

Paypal recurring payment receive "Got Http response code 400 when accessing" message.

Posted: Sun Jan 07, 2018 9:30 pm
by onlyshallow
We found that there's Paypal problem with Listgo version 1.6.0.2, when we set up the recurring payment we receive "Got Http response code 400 when accessing" message, but back into version 1.5.8, recurring payment setting do not have this issue.

We already double check with Wordpress timezone setting and PayPal timezone setting, the problem still occur.

Re: Paypal recurring payment receive "Got Http response code 400 when accessing" message.

Posted: Tue Jan 09, 2018 12:14 pm
by pirateS
Hi
Please try the flowing way:
1. Log into your hosting
2. Go to wp-content -> plugins -> wiloke-listgo-functionality folder
3. go to app -> Framework -> Payment -> PayPal -> Opening PayPalRecurringPaymentMethod.php
4. go to line 199 -> replacing 0.01*exchange rate (USD/Your Currency)
5. If this issue still there, please remove setSetupFee(new Currency(array('value' => 1, 'currency' => $this->aConfiguration['currency_code'])));


5.1. Replacing setupfee

CodeColon Select All Code

$merchantPreferences->setReturnUrl($this->thankyouUrl)
                          ->setCancelUrl($this->cancelUrl)
                          ->setAutoBillAmount('yes')
                          ->setInitialFailAmountAction('CANCEL')
                          ->setMaxFailAttempts($this->maxFailedPayments)
               >setSetupFee(new Currency(array('value' => 0.01* exchangeRate, 'currency' => $this->aConfiguration['currency_code'])));


5.1. Remove setupfee

CodeColon Select All Code

$merchantPreferences->setReturnUrl($this->thankyouUrl)
                          ->setCancelUrl($this->cancelUrl)
                          ->setAutoBillAmount('yes')
                          ->setInitialFailAmountAction('CANCEL')
                          ->setMaxFailAttempts($this->maxFailedPayments);


Please confirm it if PayPal works again.

Re: Paypal recurring payment receive "Got Http response code 400 when accessing" message.

Posted: Thu Jan 11, 2018 4:01 pm
by onlyshallow
Hi!

We tried #4 and #5, the problem still occurs.

Re: Paypal recurring payment receive "Got Http response code 400 when accessing" message.

Posted: Sat Jan 13, 2018 9:47 am
by pirateS
Please create a temporary account for me contact.wiloke@gmail.com
One more thing, make sure that PayPal Configuration is completed https://blog.wiloke.com/setup-paypal-ga ... tgo-1-5-x/