Jump to content
apeisa

Payment base class + PaymentStripe + PaymentPaypal

Recommended Posts

6 hours ago, bernhard said:

i was curious, this worked for me: https://jsfiddle.net/3L0cdjsj/5/

Bernhard!!! I think that'll work. I modified the form markup you fiddled to make the amount field a text field rather than hidden and was able to complete the transaction with a custom amount I entered. I still have to test it some more but wow, thank you for the assistance.

  • Like 1

Share this post


Link to post
Share on other sites

Additionally, you don't need a PayPal account - you can pay with your CC without signing up.

I am not defending PayPal - I actually think it's a pretty ugly system to use, but it does mostly get the job done however you need. You'll always have more flexibility with other services though. In Canada, Moneris is a reasonable option - not modern like Stripe etc, but it can be completely hidden from the user - ie everything happens on your site with no redirect.

  • Like 1

Share this post


Link to post
Share on other sites
5 hours ago, adrian said:

In Canada, Moneris is a reasonable option - not modern like Stripe etc, but it can be completely hidden from the user - ie everything happens on your site with no redirect.

They have "USA CODE SAMPLE"s as well, eg: https://developer.moneris.com/Documentation/NA/E-Commerce Solutions/API/Refund?lang=php

I guess it means US based companies are OK too, right? I am asking this because I still need to decide what to pick when I get to the ecommerce features of the site I'm still building... Have you already implemented ecommerce features for a ProcessWire site based on Moneris?
I do not want to highjack this topic, btw...

Share this post


Link to post
Share on other sites
10 hours ago, szabesz said:

Have you already implemented ecommerce features for a ProcessWire site based on Moneris?

Yes, I have, although as I mentioned I am not saying it's an awesome service, but it seems to be relatively commonly used in Canada and so I thought it might be helpful for @digitex I have also used PayPal, Sallie Mae, and Frontstream with PW. Lots of options out there :)

  • Like 2

Share this post


Link to post
Share on other sites

Recently came across the fact that if you use PaymentPaypal, on redirect Paypal shows it's United States customer form regardless what country a customer had chosen on the Processwire website. Maybe somebody mentioned this earlier or even provided a fix. If not: The PaymentPaypal module apparently does not tell Paypal the customer's country. To fix this, add this after line 16 in modules/PaymentPaypal/payment_form.php:

<input type="hidden" name="country" value="<?= $customer->country ?>">

Now the Paypal page shows the correct customer form for payment data (and later the right country in Paypal reports as well).

  • Like 4

Share this post


Link to post
Share on other sites

Please, someone can explain me how I can customize the style of the Stripe payment form? :)

I try to use the same class but doesn't work. I looking inside the module but not have find any css file. If the style come from Stripe how I can change it?
I see the Stripe doc, but I don't have understand well, the module works differente, there isn't one page with the form. or not? 

Thank you.

Share this post


Link to post
Share on other sites
2 minutes ago, MarcoPLY said:

Please, someone can explain me how I can customize the style of the Stripe payment form? :)

I try to use the same class but doesn't work. I looking inside the module but not have find any css file. If the style come from Stripe how I can change it?
I see the Stripe doc, but I don't have understand well, the module works differente, there isn't one page with the form. or not? 

Thank you.

? think you have to make the form yourself, no? or do you meand the Stripe button? not sure you can style much coming direct from Stripe.

Share this post


Link to post
Share on other sites

Hi, If I add to Default currency: EUR  the form not show me the currency icon and during the payment give me beck an error of Invalid currency.

I using Padloper, if I set the currency in Padloper setting and left empty PaymentStripe this work well. But I need not set the currency in Padloper. so, I can anyway set currency in the Stripe module?

Thank you

 

Share this post


Link to post
Share on other sites

Hi @MarcoPLY.

I love this module and use it alot but find that it needs a lot of TLC after not having much activity over the last few years. I usually work on my own copy of it for different needs as my pull requests never get looked at. https://github.com/benbyford/PaymentStripe

My suggestion is to make a copy and work on the code yourself or pay someone to add the functionality you need. The currency options never worked for me either simply becuase it was never really implemented in the module (not sure about the paypal one as i never use it).

  • Like 1

Share this post


Link to post
Share on other sites

Thank you @benbyf lol now I understand why he did not work! I need to add EUR like a currency I will try to do! thank you.

Share this post


Link to post
Share on other sites

I try to install the PaymentInvoice after has deleted. When I upload the file via ftp or backend show up an server error 500 and all website is out, when I delete and go in error log I see this error: Error: Class 'PaymentModule' not found line 3

The line 3 is: class PaymentInvoice extends PaymentModule   All look correct, why I have this error ?

I have the last version of Padloper.  

 On localhost when I install the module also give me the error but if I delete the namespace ProcessWire; everything work well. In the live version this trick  doesn't work 😞

Some one can give me some advice? 

 

 

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...