PayPal Direct Payments Module - payment method unticked

Ask the community for help and support.
DarioMartin
Posts: 35
Joined: Thu Dec 03, 2020 2:23 pm
Has thanked: 18 times
Been thanked: 2 times

PayPal Direct Payments Module - payment method unticked

Post by DarioMartin »

Me again.

I have selected to use PayPal Express / PayPal Direct Payments method as the two PayPal modules. I have obtained both my live and sandbox API credentials and have entered them. I know they work as when I click "Balance" PayPal returns both Sandbox and Live balances to my screen.

When I install the direct Payments module, all credit card boxes are ticked. If I edit that module to change credit cards accepted or change from Live to Sandbox, as soon as I hit Save, it disables all Credit Cards - unticking all of them. If I then tick all cards, or some of them, and save, it does not save that change, leaving all cards unselected. Setting back to Live does not allow me to re-enable cards.

The only way cards can be re-enabled is by removing module and re-installing.
burt
Lead Developer
Lead Developer
Posts: 2439
Joined: Tue Oct 29, 2019 9:37 am
Has thanked: 51 times
Been thanked: 138 times

Re: PayPal Direct Payments Module - payment method unticked

Post by burt »

Could you change this line:
https://github.com/gburton/CE-Phoenix/b ... ds.php#L34

To this:

Code: Select all

$input .= '<input type="checkbox" class="custom-control-input" id="cardsSelection' . ucfirst($key) . '" name="card_types[]" value="' . $key . '"' . (in_array($key, $active) ? ' checked="checked"' : '') . '>';
Save. Upload. Try again.
Report back.
Gamechanger Addon: Queued Emails, try before you buy.
DarioMartin
Posts: 35
Joined: Thu Dec 03, 2020 2:23 pm
Has thanked: 18 times
Been thanked: 2 times

Re: PayPal Direct Payments Module - payment method unticked

Post by DarioMartin »

burt wrote: Thu Dec 10, 2020 6:20 pm Could you change this line:
https://github.com/gburton/CE-Phoenix/b ... ds.php#L34

To this:

Code: Select all

$input .= '<input type="checkbox" class="custom-control-input" id="cardsSelection' . ucfirst($key) . '" name="card_types[]" value="' . $key . '"' . (in_array($key, $active) ? ' checked="checked"' : '') . '>';
Save. Upload. Try again.
Report back.
YES!! That fixed it. Thank you again Burt. Can confirm I can now change / edit attributes in Admin without losing card types
burt
Lead Developer
Lead Developer
Posts: 2439
Joined: Tue Oct 29, 2019 9:37 am
Has thanked: 51 times
Been thanked: 138 times

Re: PayPal Direct Payments Module - payment method unticked

Post by burt »

> YES!! That fixed it. Thank you again Burt. Can confirm I can now change / edit attributes in Admin without losing card types

TY. This will be fixed in the next version.
https://github.com/gburton/CE-Phoenix/c ... e1e19b8580
Gamechanger Addon: Queued Emails, try before you buy.
DarioMartin
Posts: 35
Joined: Thu Dec 03, 2020 2:23 pm
Has thanked: 18 times
Been thanked: 2 times

Re: PayPal Direct Payments Module - payment method unticked

Post by DarioMartin »

Do you want to have a look at hosted version as well? I tried using that as well, but on payment screen, I got a blank screen that had the "waiting" spinning wheel, but then went to a PayPal screen that said "This card is not available, please try a different card" - and I hadn't even got to putting card details in. I'll reinstall Hosted Solution now and run a transaction, then do screenshots to show what I mean
DarioMartin
Posts: 35
Joined: Thu Dec 03, 2020 2:23 pm
Has thanked: 18 times
Been thanked: 2 times

Re: PayPal Direct Payments Module - payment method unticked

Post by DarioMartin »

DarioMartin wrote: Fri Dec 11, 2020 9:55 am Do you want to have a look at hosted version as well? I tried using that as well, but on payment screen, I got a blank screen that had the "waiting" spinning wheel, but then went to a PayPal screen that said "This card is not available, please try a different card" - and I hadn't even got to putting card details in. I'll reinstall Hosted Solution now and run a transaction, then do screenshots to show what I mean
Well it's not crashing on PayPal screen with this browser now, but still not displaying Hosted Solution frame / box
Image

Image
burt
Lead Developer
Lead Developer
Posts: 2439
Joined: Tue Oct 29, 2019 9:37 am
Has thanked: 51 times
Been thanked: 138 times

Re: PayPal Direct Payments Module - payment method unticked

Post by burt »

Iframe. Don't use Hosted Solution as many browsers wont show iframes.
Gamechanger Addon: Queued Emails, try before you buy.
DarioMartin
Posts: 35
Joined: Thu Dec 03, 2020 2:23 pm
Has thanked: 18 times
Been thanked: 2 times

Re: PayPal Direct Payments Module - payment method unticked

Post by DarioMartin »

Quick fix there Burt thanks; Direct Payments it is
Thinlizzy80
Posts: 3
Joined: Mon Aug 02, 2021 10:56 pm

Re: PayPal Direct Payments Module - payment method unticked

Post by Thinlizzy80 »

I am sorry I was reading this posts and making many tests. I use CE Phoenix 1.0.7.5 under php 7.3
I've installed these 3 modules: PayPal Express Checkout,PayPal Payments Pro (Direct Payment) and PayPal Payments Pro (Hosted Solution)



when I insert that line on my card.php
$input .= '<input type="checkbox" id="cardsSelection' . ucfirst($key) . '" name="card_types[]" value="' . $key . '"' . (in_array($key, $active) ? ' checked="checked"' : '') . '><label for="cardsSelection' . ucfirst($key) . '">' . $value . '</label>';

I got a new pop window automatically:
errors: Error Processing Payment
ErrorMessage
This transaction can't be processed. Please pay with another card.

Question2) I nave installed the fixer module for currencies I got this
The exchange rate for EUR was updated successfully via Fixer.
The exchange rate for USD was updated successfully via Fixer.
The exchange rate for PEN was updated successfully via Fixer.

but when I simulate the payment under PEN currency under paypal I got this: Receiving country does not support the transaction currency.

question 3) When I use the option card under Credit or Debit Card I got this afer enter the details of a card:
The merchant country is not supported.

can you give me an Idea thanks for your support.
ecartz
Lead Developer
Lead Developer
Posts: 2656
Joined: Tue Nov 05, 2019 6:02 pm
Has thanked: 4 times
Been thanked: 182 times

Re: PayPal Direct Payments Module - payment method unticked

Post by ecartz »

List of currencies supported by PayPal: https://developer.paypal.com/docs/repor ... urrencies/

No PEN on that list.
Post Reply