Page 41 of 46 FirstFirst ... 313940414243 ... LastLast
Results 401 to 410 of 456
  1. #401
    Join Date
    Jan 2015
    Posts
    722
    Plugin Contributions
    1

    Default Re: PayPal RESTful API Payment Module

    Guess I was wrong. Got two emails from customers saying when they tried with paypal it just kept spinning.
    Strange is that i did get some paypal orders go through. When I tried on firefox this morning it just kept spinning. Is there anyone else having these issue?

    i removed all of this from the .htacess file
    Code:
    <IfModule mod_headers.c>
    Header set Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://code.jquery.com https://cdn.jsdelivr.net https://cdnjs.cloudflare.com https://stackpath.bootstrapcdn.com https://www.googletagmanager.com https://www.google-analytics.com https://www.google-gtagservices.com https://www.googleadservices.com https://*.doubleclick.net https://bat.bing.com https://connect.facebook.net https://www.facebook.com https://mylivechat.com https://t2.mylivechat.com https://www.shopperapproved.com https://cdn.doofinder.com https://us1-config.doofinder.com https://maps.googleapis.com https://www.paypal.com https://www.paypalobjects.com; connect-src 'self' https://www.google-analytics.com https://www.googletagmanager.com https://analytics.google.com https://www.google.com https://cdn.jsdelivr.net https://mylivechat.com https://t2.mylivechat.com https://www.shopperapproved.com https://www.googleadservices.com https://*.doubleclick.net https://bat.bing.com https://connect.facebook.net https://www.facebook.com https://cdn.doofinder.com https://us1-api.doofinder.com wss://*.doofinder.com https://maps.googleapis.com https://www.paypal.com https://www.paypalobjects.com; img-src 'self' data: https://invertersupply.com https://www.google-analytics.com https://www.googletagmanager.com https://www.google.com https://www.googleadservices.com https://*.doubleclick.net https://bat.bing.com https://connect.facebook.net https://www.facebook.com https://www.shopperapproved.com https://mylivechat.com https://t2.mylivechat.com https://maps.gstatic.com https://www.paypalobjects.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdn.jsdelivr.net https://cdnjs.cloudflare.com https://cdn.doofinder.com https://t2.mylivechat.com https://code.jquery.com https://www.shopperapproved.com; style-src-elem 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdn.jsdelivr.net https://cdnjs.cloudflare.com https://cdn.doofinder.com https://t2.mylivechat.com https://code.jquery.com https://www.shopperapproved.com; font-src 'self' https://fonts.gstatic.com https://cdnjs.cloudflare.com; frame-src https://www.googletagmanager.com https://www.google.com https://mylivechat.com https://t2.mylivechat.com https://www.googleadservices.com https://*.doubleclick.net https://www.facebook.com https://www.paypal.com; form-action 'self' https://www.facebook.com https://www.invertersupply.com https://www.paypal.com; frame-ancestors 'self'; upgrade-insecure-requests;"
    </IfModule>

    Is there another paypal plugin I could try that's not as quirky.

    I just set the paypal rest module up last week. I have been using zencart for years and never had an issue like this especially with a payment module. I may have to go back to the express checkout if I cant solve this issue.

  2. #402
    Join Date
    Aug 2004
    Posts
    822
    Plugin Contributions
    0

    Default Re: PayPal RESTful API Payment Module

    Quote Originally Posted by chadlly2003 View Post
    Is there anyone else having these issue?
    Not sure if this will help isolate any issues, but have you tried the CURL tester to see what the output is?

    By default, it's installed in: https://www.YOURDOMAIN.COM/extras/curltester.php

    You an see if there are any errors listed there which might help pinpoint any connection issues.

    (In the past, I had issues with PayPal not connecting, and it turned out that it was something in our firewall that was blocking the connection).
    - Jeff

  3. #403
    Join Date
    Jan 2015
    Posts
    722
    Plugin Contributions
    1

    Default Re: PayPal RESTful API Payment Module

    In express paypal the old version It used to show the paypal transaction id in the email.

    How would I add it into the paypalr rest file. So when an email is sent that it includes paypal transaction

  4. #404
    Join Date
    Jan 2015
    Posts
    722
    Plugin Contributions
    1

    Default Re: PayPal RESTful API Payment Module

    Quote Originally Posted by chadlly2003 View Post
    In express paypal the old version It used to show the paypal transaction id in the email.

    How would I add it into the paypalr rest file. So when an email is sent that it includes paypal transaction
    to show the transaction id on them email
    path \includes\modules\paymentpaypalr

    find line 2651
    Code:
       if (!empty($paypal['txn_id'])) {
                            $email_text .= "\n\n" . ' PayPal Trans ID: ' . $paypal['txn_id'];
                            $html_msg['EMAIL_PAYPAL_TRANSID'] = $paypal['txn_id'];
                        }
    replace with:

    Code:
    // Get the PayPal transaction ID from the order info
    $paypal_txn_id = !empty($this->orderInfo['payment_info']['transaction_id']) ? 
                      $this->orderInfo['payment_info']['transaction_id'] : 'N/A';
    
    // Append to the plain text email
    $email_text .= "\n\n" . 'PayPal Transaction ID: ' . $paypal_txn_id;
    
    // Add to the HTML message
    $html_msg['EMAIL_PAYPAL_TRANSID'] = $paypal_txn_id;

  5. #405
    Join Date
    Jan 2015
    Posts
    722
    Plugin Contributions
    1

    Default Re: PayPal RESTful API Payment Module

    That did not work. hmm this module is not my friend. Ill figure it out too be continued

  6. #406
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,912
    Plugin Contributions
    13

    Default Re: PayPal RESTful API Payment Module

    Quote Originally Posted by chadlly2003 View Post
    to show the transaction id on them email
    path \includes\modules\paymentpaypalr

    find line 2651
    Code:
       if (!empty($paypal['txn_id'])) {
                            $email_text .= "\n\n" . ' PayPal Trans ID: ' . $paypal['txn_id'];
                            $html_msg['EMAIL_PAYPAL_TRANSID'] = $paypal['txn_id'];
                        }
    replace with:

    Code:
    // Get the PayPal transaction ID from the order info
    $paypal_txn_id = !empty($this->orderInfo['payment_info']['transaction_id']) ? 
                      $this->orderInfo['payment_info']['transaction_id'] : 'N/A';
    
    // Append to the plain text email
    $email_text .= "\n\n" . 'PayPal Transaction ID: ' . $paypal_txn_id;
    
    // Add to the HTML message
    $html_msg['EMAIL_PAYPAL_TRANSID'] = $paypal_txn_id;
    chad,
    in looking at v1.3.0 there is no line 2651.

    in addition, the correct path is:

    /includes/modules/payment/paypalr.php

    i think you are referring to the code in this block.

    if so, that code in a vanilla version of zc v2.x.x (and probably earlier) will never get hit.

    that code will only get run IF you are missing the function zen_update_orders_history. you can see that here.

    so if you are running a vanilla version of ZC and want that id in your email, i would recommend using a notifier from the zen_mail method and inserting it there.

    best.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

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

    Default Re: PayPal RESTful API Payment Module

    Noticed that if customers use the "credit card" option with the PayPal RESTful payment module, and fill in a company name, this isn't carried through to the PayPal payment for the card payment (PayPal just shows the customers name and address). Not sure if we've missed an obvious setting somewhere, which allows the company name field to be populated with the actual payment?

  8. #408
    Join Date
    Jan 2015
    Posts
    722
    Plugin Contributions
    1

    Default Re: PayPal RESTful API Payment Module

    Quote Originally Posted by carlwhat View Post
    chad,
    in looking at v1.3.0 there is no line 2651.

    in addition, the correct path is:

    /includes/modules/payment/paypalr.php

    i think you are referring to the code in this block.

    if so, that code in a vanilla version of zc v2.x.x (and probably earlier) will never get hit.

    that code will only get run IF you are missing the function zen_update_orders_history. you can see that here.

    so if you are running a vanilla version of ZC and want that id in your email, i would recommend using a notifier from the zen_mail method and inserting it there.

    best.
    Carl,

    This is how i was able to put the transaction id on paypair email. What are your thoughts

    path: \includes\classes\order.php
    find line 1458

    Code:
    $html_msg['PAYMENT_METHOD_DETAIL'] = (isset($GLOBALS[$_SESSION['payment']]) && is_object($GLOBALS[$_SESSION['payment']]) ? $GLOBALS[$payment_class]->title : PAYMENT_METHOD_GV);

    add right below the above
    Code:
    // bof paypal transaction id
        // ----- Add PayPal Authorization ID to emails if payment method is PayPal -----
    if (!empty($_SESSION['payment']) && strpos(strtolower($_SESSION['payment']), 'paypal') !== false) {
        global $db;
    
        // Fetch latest PayPal Authorization ID for this order
        $txn_check = $db->Execute(
            "SELECT txn_id 
             FROM paypal 
             WHERE order_id = " . (int)$zf_insert_id . " 
             ORDER BY date_added DESC 
             LIMIT 1"
        );
    
        $txn_id = (!$txn_check->EOF && !empty($txn_check->fields['txn_id'])) 
                    ? $txn_check->fields['txn_id'] 
                    : 'N/A';
    
        // Append to plain text email
        $email_order .= "\nPayPal Authorization ID: $txn_id\n";
    
        // Append to HTML email
        if (!isset($html_msg['PAYMENT_METHOD_DETAIL'])) $html_msg['PAYMENT_METHOD_DETAIL'] = '';
        $html_msg['PAYMENT_METHOD_DETAIL'] .= '<br><strong>PayPal Authorization ID: ' . htmlspecialchars($txn_id) . '</strong>';
    }
    // eof paypal transaction id



    One question:
    When a palpal order is created in the database it creates two order_id with different txn_type.

    txn_type: Create
    txn_type: Capture

    I believe this is just the way paypalr put it into the database. Just wanted to verify

  9. #409
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,912
    Plugin Contributions
    13

    Default Re: PayPal RESTful API Payment Module

    chad,
    i really despise paypal. they screwed me over years ago so i try not to support them and everything that they do.

    with regards to your question, again, you are now looking at modifying core code. so again i am not a fan.

    the code seems like it might work, but i do not have any test paypal credentials.

    it seems there is a notifier here:

    https://github.com/zencart/zencart/b...rder.php#L1486

    so i would attach there as opposed to modifying core code.

    did i mention i abhor modifying core code?

    did i mention i despise paypal?

    on cursory look, there does seem to be different transaction ids for each transaction type. although i could be wrong.

    with regards to what goes into the database, paypal does not put anything into the database. this plugin puts it into the database. i would not confuse paypal with this plugin. they are different.

    best.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  10. #410
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,913
    Plugin Contributions
    96

    Default Re: PayPal RESTful API Payment Module

    Just verifying that the payment module (paypalr) creates two entries in the paypal database table upon order creation, one with a txn_type of CREATE and another that depends on whether the transaction was treated as a Final Sale (CAPTURE) or Authorize-Only (AUTHORIZE).

 

 
Page 41 of 46 FirstFirst ... 313940414243 ... LastLast

Similar Threads

  1. v158 UPS Shipping using RESTful/OAuth API [Support Thread]
    By lat9 in forum Addon Shipping Modules
    Replies: 187
    Last Post: 20 Apr 2026, 09:15 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