GithubHelp home page GithubHelp logo

vendrhub / vendr-payment-provider-opayo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nikrimington/vendr-payment-provider-sagepay

1.0 1.0 6.0 11.18 MB

Opayo (formally SagePay) Payment Provider for Vendr, the eCommerce solution for Umbraco v8+

License: MIT License

Batchfile 0.34% C# 91.06% PowerShell 4.84% Shell 3.76%
ecommerce opayo payment-gateway payment-provider sagepay umbraco umbraco-v8

vendr-payment-provider-opayo's People

Stargazers

 avatar

Watchers

 avatar

vendr-payment-provider-opayo's Issues

Opayo provider callback fails

We have wired up our Opayo provider with Vendr v2 (on Umbraco 9) and currently can't process any payments.

Upon taking the card details Opayo tries to redirect back to the Vendr site.

We receive the following error:

Screenshot 2021-10-14 at 21 41 19

This is because the callback URL that Vendr returns throws a 500 error.

I have investigated and found the error is a null reference, in CallbackRequestModel.FromRequestAsync the request parameter is null... Further digging brought me to looking at PaymentProviderContext in the Vendr Core, which has 2 internal constructors: one that takes a request, and one that passes null through for the request instead. The base payment provider uses the constructor without request and therefore the payment provider goes💥 when it calls ProcessCallbackAsync.

Previously in Vendr V1 the request was passed in to ProcessCallback as a parameter.

US Region referenced by alias rather than object

I've been working through a site which uses this provider in conjunction with the Vendr Checkout plugin and came across an issue when sending payment info for the US. Opayo requires the region to be provided and in this provider we're finding this by alias reference - where the region is stored against the PaymentInfo object.

I think that it should fetch the region in the same way that it fetches the country, through the PaymentInfo object (rather than attempting to fetch it via an alias). Does this sound like a sensible way forward? I'm happy to create a PR for the work.

Specifically in this code and for reference, here is where it's being stored in the Checkout plugin.

GenerateFormAsync silently failing

Hey,

We're at the starting block with this plugin and we're trying to integrate alongside the Vendr Checkout and when we're trying to access the /checkout/review-order/ page we're getting a constantly loading page.

I've narrowed this down to OpayoServerPaymentProvider.cs and it looks like the await call is failing and causing a deadlock.

Turns out that the underlying issue is the fact my notification URL was invalid, but the package didn't tell me that or put anything out in the logs.

For reference:
Umbraco 8.18.2
Vendr.Core 2.0.0
Vendr.Checkout 2.1.0

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.