Git Product home page Git Product logo

vendr-payment-provider-paypal's Introduction

Vendr PayPal Payment Provider

PayPal Payment Provider for Vendr, the eCommerce package for Umbraco

vendr-payment-provider-paypal's People

Contributors

mattbrailsford avatar

Stargazers

 avatar

Watchers

 avatar  avatar

vendr-payment-provider-paypal's Issues

Unable to get order reference (Umb 11)

Hi Matt,

We recently upgraded to Umbraco 11 and our PayPal payment method has stopped working.

When the PayPal checkout flow is complete and the user is redirected back to our site, the order is placed in a kind of limbo state where it's cleared from the current order, but still classed as a cart.

Having checked the logs it seems PayPal is unable to get the order refernece (see error below). I've done some digging and think it could possibly be related to a breaking change introduced in dot net 7, so the jump to Umbraco 11 probably caused that, but I'm not 100% certain just yet.

I've forked a copy of the repo to continue my digging but I thought I'd raise the issue incase it's something you're already aware of and / or have a fix for.

We're using the following versions:

Umbraco: 11.3.1
Vendr: 3.0.11
Vendr.PaymentProviders.PayPal: 2.0.1

Here's the full error:

PayPal - GetOrderReference

System.ArgumentException: The value cannot be null or empty. (Parameter 'mediaType')
   at System.Net.Http.Headers.MediaTypeHeaderValue.CheckMediaTypeFormat(String mediaType, String parameterName)
   at Flurl.Http.Content.CapturedStringContent..ctor(String content, Encoding encoding, String mediaType)
   at Flurl.Http.GeneratedExtensions.PostStringAsync(IFlurlRequest request, String data, CancellationToken cancellationToken, HttpCompletionOption completionOption)
   at Vendr.PaymentProviders.PayPal.Api.PayPalClient.<>c__DisplayClass12_0.<<ParseWebhookEventAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at Vendr.PaymentProviders.PayPal.Api.PayPalClient.RequestAsync[TResult](String url, Func`2 func)
   at Vendr.PaymentProviders.PayPal.Api.PayPalClient.ParseWebhookEventAsync(HttpRequestMessage request)
   at Vendr.PaymentProviders.PayPal.PayPalPaymentProviderBase`1.GetPayPalWebhookEventAsync(PayPalClient client, PaymentProviderContext`1 ctx)
   at Vendr.PaymentProviders.PayPal.PayPalCheckoutOneTimePaymentProvider.GetOrderReferenceAsync(PaymentProviderContext`1 ctx)

As always any help is greatly appreciated!

Order price error with PayPal

All the orders performed with the PayPal payment provider end up with an error. The problem is related to the order total amount calculated by Vendr at some point in the checkout process. Here are the steps I follow:

  1. I put in the cart an item with a price of 1.50€
  2. In the checkout process, I choose the PayPal payment provider
  3. I complete the payment of 1.50€ with PayPal

At the end of the process, the order has an "Error" status because the amount expected by Vendr for the order is 150€ (1.50 without the decimal separator) and so there are 148.50€ missing. If I choose Stripe as a payment provider, the order is completed correctly without any issue.

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.