Coder Social home page Coder Social logo

nopsolutions / paypalexpress-plugin-for-nopcommerce Goto Github PK

View Code? Open in Web Editor NEW
7.0 13.0 16.0 376 KB

nopCommerce plugin for PayPal Express (payments)

Home Page: https://www.nopcommerce.com/

License: GNU General Public License v3.0

C# 99.14% HTML 0.86%

paypalexpress-plugin-for-nopcommerce's Introduction

paypalexpress-plugin-for-nopcommerce's People

Contributors

andreimaz avatar exiledev avatar romanovm avatar skoshelev avatar ted-phillips avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

paypalexpress-plugin-for-nopcommerce's Issues

Currency Conversion Error

Hi there,
My shop current Currency is GBP. All product prices put with gbp, but when i use paypal sandbox i have problem. For example my item price 270gbp, when i change my shop curreny to usd its changed via 353usd but when i order via paypal express its reduced to 270usd.

And if i order with still in GBP currecy, paypal express is reduced to 206usd.

So PayPal express plugin always exchange price usd->gbp, but finall currecy is usd.
CAn you help me please?

Checkout Validation is not present

Clicking the Paypal button at the bottom of the Cart page, initiates a number of steps, but it does not run the code from _shoppingCartService.GetShoppingCartWarnings.

It validates the Terms of Service link was clicked from an Onclick function, but by ignoring Checkout Attribute requirements, it fails to complete the checkout as it later validates the order but the required items are not available to edit and you can not move forward.

Has anyone incorporated the checkout validation into their own code?

"Index was out of range" error

If you have two tabs open and are logged in for both, then add to cart and go to cart. On the second tab logout. Now on the cart click the paypal express....... Boom chicka Boom it crashes Nopcommerce.
Short Error: (I can give you the long one if you want). "Index was ouSystem.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index"

Source: http://www.nopcommerce.com/p/1149/paypal-express-payment-plugin-nopcommerce-team.aspx (reviews)

Bug when using currency other than primary currency

When checking out using any currency other than the primary currency, the primary currency value is sent to PayPal with the currency that the user checked out in. So the user can checkout in GBP for example (with EUR the base currency). The EUR value is sent to PayPal but the currency sent is GBP.

For example, one product might cost €1.00 or £0.88. If I checkout in GBP £1.00GBP is sent to PayPal instead of £0.88GBP. This bug renders the plugin unusable on multi-currency website.

Bug exists on nopCommerce 3.5 (may exist on other versions too).

Empty Cart with Chrome

If using Chrome, unless the customer is signed in, when the customer returns to the checkout confirm page, the shopping cart is empty and customer cannot complete purchase.

Using IE and Microsoft Edge, and no issue. Just in Chrome does this behavior occur. Only when customer has not logged into storefront as well.

Remove deprecated values from the DoCapture API calls

Later this month, we will be deprecating three values from the DoCapture API calls. These three values will no longer be returned in the API response:

TAXAMT
TRANSACTIONTYPE
RECEIPTID

Could you please look into your logic for the Express Checkout module to determine if you are doing anything with these values from the DoCapture response? If so, let’s sync up to discuss action plan.

For details, see the NVP 9https://developer.paypal.com/docs/classic/api/merchant/DoCapture_API_Operation_NVP/) and SOAP (https://developer.paypal.com/docs/classic/api/merchant/DoCapture_API_Operation_SOAP/) documentation.

JS error allows multiple orders

The following line needs to be updated to <script asp-location="Footer"> to fix the disabling of the confirmation button on submit.

This client side issue also highlights an issue with the PayPalExpressCheckoutService IsMinimumOrderPlacementIntervalValidAsync method that should be checking for duplicate orders. When debugging locally I can see that the SearchOrdersAsync is not returning the first order during the PlaceOrder for the second order. I can't work out why, maybe caching or async has stopped it working as it was originally intended?

NopCommerce Version - 4.40.4
PayPalExpress plugin version - 1.36

Repro steps (before fixing the js)

  1. Proceed through the PayPal Express checkout process including the PayPal sandbox.
  2. When PayPal returns you to the nop checkout, go to the Confirm page
  3. Click the Confirm button multiple times quickly

error

error ubuntu 19.04

Object Reference Not Set Error When Product Attribute is Present

PaypalExpressCheckout .RequiresShipping() method calls (there are 3 in the project) should pass .RequiresShipping(_productService, _productAttributeParser) from nopcommerce 4.0 instead of passing nothing.

If nothing is passed, an object reference exception is called in ShoppingCartItemExtensions.IsShipEnabled because it does not check _productService if null but uses it. This happens if a product has attributes. This error happens after logging in Paypal and continuing to pay to redirect it back to the website to confirm.

This bug happens in the CheckMoneyOrder Plugin as well as it calls the same method without passing anything.

Amounts are invalid

nopCommerce version: 4.6

An error occurred setting up your cart for PayPal.

Error passing cart to PayPal
Full message
10401: Order total is invalid., 10426: Item total is invalid., 10427: Shipping total is invalid., 10429: Tax total is invalid., 10431: Item amount is invalid.

Paypal express check out plugin not working nopcommerce version 4.4

I configured Paypal Express in Sandbox mode (incl. Sandbox Account) and get the following error message during checkout:

  1. Log Entry:
    Short: SetExpressCheckoutResponseType returned - Part 1 of 1
    Full:
    {"Token":null,"Timestamp":"2020-11-17T21:06:25Z","TimestampSpecified":true,"Ack":1,"CorrelationID":"6ed6591ef27b","Errors":[{"ShortMessage":"Transaction refused because of an invalid argument. See additional error messages for details.","LongMessage":"Order total is invalid.","ErrorCode":"10401","SeverityCode":1,"ErrorParameters":null},{"ShortMessage":"Transaction refused because of an invalid argument. See additional error messages for details.","LongMessage":"Item total is invalid.","ErrorCode":"10426","SeverityCode":1,"ErrorParameters":null},{"ShortMessage":"Transaction refused because of an invalid argument. See additional error messages for details.","LongMessage":"Shipping total is invalid.","ErrorCode":"10427","SeverityCode":1,"ErrorParameters":null},{"ShortMessage":"Transaction refused because of an invalid argument. See additional error messages for details.","LongMessage":"Tax total is invalid.","ErrorCode":"10429","SeverityCode":1,"ErrorParameters":null},{"ShortMessage":"Transaction refused because of an invalid argument. See additional error messages for details.","LongMessage":"Item amount is invalid.","ErrorCode":"10431","SeverityCode":1,"ErrorParameters":null}],"Version":"98.0","Build":"55058010","Any":null}

  2. Log Entry:
    Short: Error passing cart to PayPal
    Full: 10401: Order total is invalid., 10426: Item total is invalid., 10427: Shipping total is invalid., 10429: Tax total is invalid., 10431: Item amount is invalid.

Error code 10486 not returning to PayPal

when user selects a different address on PayPal then what he selected in checkout on website, or if card gets declined, PayPal will issue a 10486 Error and we need to reroute the customer back to his paypal account where he can see exactly what went wrong and fix, as of now it doesnt reroute the customer back to paypal.

https://developer.paypal.com/docs/classic/express-checkout/ht_ec_fundingfailure10486/

this is the error that we get from PayPal
Error while placing order. Error 1: Payment error: LongMessage: This transaction couldn't be completed. Please redirect your customer to PayPal. ShortMessage: This transaction couldn't be completed. ErrorCode: 10486 . Error 2: Payment error: .

Duplicate orders issue, orders are paid by Paypal express

Hi,
I found an issue related to checkout. For example, if customers open two tabs of same checkout page, and click confirm order in both tabs (btw, orders are paid by PayPal express plugin) almost at the same time, Nopcommerce will create two orders which are duplicated, and both two orders would be marked as Paid in Nopcommerce, but actually based on the response message received from Paypal, first order will receive both success and error responses, the second order does not have any Paypal message.

The success message is understandable, and the error message shows
..."Errors":[{"ShortMessage":"Duplicate Request","LongMessage":"A successful transaction has already been completed for this token.","ErrorCode":"11607"...

I know the possibility of this case maybe very small, but it has happened several times on our store. I dont know how the customer caused this problem exactly, but in the way I described above, I can reproduce this issue.

My question is how to prevent this issue? Is this a case would be improved in the future?

Thanks.

Moved from nopSolutions/nopCommerce#5131

PayPal Express Plugin problem

I have admin area > configuration > settings > shipping settings configured and all warehouses have address setup. Yet, I am seeing the following error when I try to use Express checkout. I can checkout just fine with all other payment methods.

"An error occurred setting up your cart for PayPal."

I find the following error messages in the Log:
SetExpressCheckoutResponseType returned - Part 1 of 1
Error passing cart to PayPal
Shipping (USPS (US Postal Service)). Shipping address is not set
Shipping (FedEx). Shipping address is not set

Originally posted at nopSolutions/nopCommerce#2765

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.