Results 1 to 10 of 475

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,701
    Plugin Contributions
    11

    Default Re: PayPal RESTful API Payment Module

    Have you loaded the 1.3.0 version?

    Edit the settings and scroll down to PayLater Messaging.

    Attachment 21170
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  2. #2
    Join Date
    Aug 2004
    Posts
    823
    Plugin Contributions
    0

    Default Re: PayPal RESTful API Payment Module

    Quote Originally Posted by dbltoe View Post
    Have you loaded the 1.3.0 version?
    Oh snap, I thought I was running the latest and failed to see the new version! Thanks for pointing that out. Can't wait to try this new feature.
    - Jeff

  3. #3
    Join Date
    Jan 2015
    Posts
    726
    Plugin Contributions
    1

    Default Re: PayPal RESTful API Payment Module

    Only way i see PayLater is when i go through the checkout process click paypal and confirm payment. Than i am in the paypal and click on pay later which is not so easy to get to.


    This is exactly what I am looking for. But seem to be missing something.
    When enabled, it will show the lower installment-based pricing for the presented product or cart amount.

  4. #4
    Join Date
    Jan 2015
    Posts
    726
    Plugin Contributions
    1

    Default Re: PayPal RESTful API Payment Module

    the only way i can get the message to display.

    Add this
    path: includes\templates\bootstrap\common\html_header.php

    Code:
    <script src="https://www.paypal.com/sdk/js?client-id=xxxxxxxxxxxx-xxxxxxxx=USD&intent=capture&components=buttons,messages&enable-funding=paylater"></script>
    includes\templates\your_template\templates\tpl_product_info_display.php

    add this **note i use special price not product_price

    Code:
    <div 
      data-pp-message
      data-pp-style-layout="text"
      data-pp-style-logo-type="inline"
      data-pp-style-text-color="black"
      data-pp-amount="<?php echo zen_get_products_special_price($_GET['products_id']); ?>">
    </div>
    result
    Click image for larger version. 

Name:	Screenshot 2026-02-20 190635.jpg 
Views:	33 
Size:	14.1 KB 
ID:	21173

  5. #5
    Join Date
    Jan 2015
    Posts
    726
    Plugin Contributions
    1

    Default Re: PayPal RESTful API Payment Module

    on the product info page
    just add this

    Code:
    <!-- paypal buy now message  -->
    <div class="" 
      data-pp-message
      data-pp-style-layout="text"
      data-pp-style-logo-type="inline"
      data-pp-style-text-color="black"
      data-pp-amount="<?php echo zen_get_products_special_price($_GET['products_id']); ?>">
    </div>
    <!-- eof paypal buy now message  -->

    shopping cart
    Code:
    <!-- paypal buy now message  -->
    <div class=""
      data-pp-message
      data-pp-style-layout="text"
      data-pp-style-logo-type="inline"
      data-pp-style-text-color="black"
      data-pp-amount="<?php echo $_SESSION['cart']->show_total(); ?>">
    </div>
    <!-- eof paypal buy now message  -->
    Please omit the header entry...

    Seems to work

  6. #6
    Join Date
    Jan 2015
    Posts
    726
    Plugin Contributions
    1

    Default Re: PayPal RESTful API Payment Module

    I have a question.... I noticed that sometimes when you check out and the paypal window popup up. If I click on guest checkout and put an email address in it just keeps spinning. This happens a lot but not all the time. Is this a paypal issue or a zencart issue.

    Click image for larger version. 

Name:	Screenshot 2026-02-25 213240.jpg 
Views:	40 
Size:	24.9 KB 
ID:	21181

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: PayPal RESTful API Payment Module

    Quote Originally Posted by chadlly2003 View Post
    I have a question.... I noticed that sometimes when you check out and the paypal window popup up. If I click on guest checkout and put an email address in it just keeps spinning. This happens a lot but not all the time. Is this a paypal issue or a zencart issue.

    Click image for larger version. 

Name:	Screenshot 2026-02-25 213240.jpg 
Views:	40 
Size:	24.9 KB 
ID:	21181
    You've not provided enough information to determine whether the source of the issue lies with PayPal or Zen Cart. If you activate your browser's Developer Tools (by pressing F12 on a Windows computer) and view the "Console" tab, that will show any javascript/jQuery type issues going on.

  8. #8
    Join Date
    Jan 2015
    Posts
    726
    Plugin Contributions
    1

    Default Re: PayPal RESTful API Payment Module

    Quote Originally Posted by lat9 View Post
    You've not provided enough information to determine whether the source of the issue lies with PayPal or Zen Cart. If you activate your browser's Developer Tools (by pressing F12 on a Windows computer) and view the "Console" tab, that will show any javascript/jQuery type issues going on.
    These are the errors that come up with paypal popup. It does work.
    Though its very random. Seems like when i use firefox it where i see it happen more than usual. I click on guest checkout and type in email and it just spins
    Not sure if this is a permission issue. Or an issue on paypal site.

    errors within th paypal page
    Code:
    Cookie “__cflb” has been rejected because it is in a cross-site context and its “SameSite” is “Lax” or “Strict”.
    Cookie “__cf_bm” has been rejected for invalid domain. api.js
    Cookie “__cf_bm” has been rejected for invalid domain. hcaptcha.html
    Cookie “__cf_bm” has been rejected for invalid domain. hcaptcha.html
    Cookie “__cf_bm” has been rejected for invalid domain. checksiteconfig
    Cookie “__cf_bm” has been rejected for invalid domain. hsw.js

  9. #9
    Join Date
    Apr 2023
    Location
    UK
    Posts
    64
    Plugin Contributions
    0

    Default Re: PayPal RESTful API Payment Module

    @lat9

    Got this payment module up and running smoothly, and thought it would be a good idea to add spaces when a customer starts typing in a credit card number, e.g with a mastercard if a customer types in the 16 digit card number, it automatically creates a blank space after each forth number, and with Amex where numbers are slightly different, the blank space are created where they should go.

    Thought this to be a good idea, as it may confuse customers whether to type in the card number without spaces or not; but by having it automatically applied as they type confirms how the number should be entered.

    Also, got the card logo to show for the card that's being used as well, once the first card digits get entered.

    E.G: Customer uses a mastercard, as soon as they type the first 4 digits, a mastercard logo appears.

    Got this working; just got a few final tweaks to make, and wanted to know if this would be something that you'd like to push into a future update of the payment module?

    If so; happy to provide a pull request, once the final tweaks have been made.

    Kind Regards,

    Andy
    Last edited by andy_77; 26 Feb 2026 at 07:19 PM.

 

 

Similar Threads

  1. v158 UPS Shipping using RESTful/OAuth API [Support Thread]
    By lat9 in forum Addon Shipping Modules
    Replies: 200
    Last Post: 10 Jul 2026, 03:03 PM
  2. IPower & FirstData API Payment Module
    By spence in forum Addon Payment Modules
    Replies: 6
    Last Post: 7 Jul 2011, 06:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg