Sitecore e-commerce new payment provider - asp.net

I'm having an issue with sitecore e-commerce since I'm very new to it ,I couldn't find any clear steps or code snippet about how to implement a new payment provider , I know that the Authorize.net is already implemented but I need to add PayFlow Pro payment provider , do I have to do new code changes ?if yes what are they ? please help

http://sdn.sitecore.net/upload/sdn5/products/sefe/sefe101/sefe_developers_cookbook-a4.pdf
Page 26 will help you :)

The SEFE 1.1 Payment Method Reference Guide provides details for "Implementing a New Payment Provider", including how to register it with Unity and step by step code samples for implementing the Sitecore.Ecommerce.DomainModel.Payments.IOnlinePaymentProvider interface.
Otherwise I've taken to ripping the provided SEFE Payment Providers apart using something like ILSpy or Reflector.

I've just blogged about how to create an on-site payment provider, but the steps I show could be used for an off-site payment provider with a little tweaking.
http://adeneys.wordpress.com/2011/08/10/sefe-on-site-payment-provider/

Related

What is the best way to implement LinkedIn Authentication in MVC6 ASP.NET5 web app

There is no LinkedIn-specific library from Microsoft like Microsoft.AspNet.Authentication.Facebook. The third party libraries I tried are designed for ASP.NET4.5.
I also waiting for middleware for LinkedIn authentication from aspnet team, but look like they have no plans to create it - read LinkedIn Authentication and Will we have a Authentication.LinkedIn.
#Tratcher wrote:
No, but there's a comunity implementation available here: aspnet-contrib/AspNet.Security.OAuth.Providers
You can try this one above and please let me know if it's working well, please.
Also You can create middleware yourself based on generic OAuth middleware...
Check aspnet/Security repo on GitHub, and read LinkedIn Authenticating with OAuth 2.0 article.
As Lukasz pointed out, you can use the LinkedIn provider in the https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers project. I wrote that provider and it is just a thin layer on top of the built-in generic OAuth2 provider.
It you want to use the generic OAuth2 provider directly, you can also look at this blog post which takes you step-by-step through the entire process:
https://auth0.com/blog/2016/06/13/authenticating-a-user-with-linkedin-in-aspnet-core/

What Paypal SDK should I use?

I'm working on an asp.net web application that has two types of users. Advertiser and Publisher. Both of them have credit(money) in their accounts.
I need to integrate Paypal payments so that an advertiser can add money to his balance. And also for the publisher to be able to withdraw money from his balance (money he made using the website).
I've gone through the Paypal REST and classic API's. Downloaded and browsed the .net code samples provided by Paypal themselves but I'm still having trouble deciding which SDK should I use to satisfy both scenarios with the best experience possible for the user. I'm inclined towards MassPay (in the MerchantSDK) for the withdrawals but I'm not 100% sure of this.
Any help or guidance is appreciated.
Many thanks.
The short answer is that you should use the REST SDKs if at all possible. PayPal's products are moving to that API and once everything is there, support for older SDKs will be discontinued.

How to integrate PayPal Express Checkout with ASP.NET Web Pages site ("Razor")

I have an ASP.NET Razor / Web Pages site that I need to integrate with PayPal Express Checkout. Edit: this integration requires more than just a simple PayPal-generated button, e.g., I need to dynamically set the price, item description, tax etc.
I am quite new to both Web Pages and PayPal integration so would like to ask what the preferred approach would be.
So far, I have found there are these options:
Use PayPal Helper for WebMatrix
Just read the PayPal spec and create a form with hidden fields etc.
Use some of the NuGet packages from PayPal
Inspire in some custom code like this one
No. 1 is probably some outdated code (both the release date and recent reviews suggest that), no. 2 will certainly work but I'll be on my own, I'm hoping that no. 3 would be the best answer but there are many of those NuGet packages and I haven't found any good examples yet, and 4 is an option if no other works.
Any suggestions? The goal is to have a simple form, below it my custom "Pay Now" button (preferably; could be also a PayPal-provided button) and when user clicks it, the website should redirect him to PayPal, process the payment notification / approval etc.
I realize this question is old, but if you're looking for SDKs provided by PayPal that support Express Checkout, then you have the following two options:
PayPal .NET SDK
This SDK (formerly known as the "RestApiSdk") is built on the newer PayPal REST APIs and provides support for Express Checkout through the Payments API. All API calls use an OAuth token for security and the calls (and associated code) are a bit cleaner than its Classic counterpart. While some aspects of the REST services are still not quite up to par compared to Classic (e.g. Subscriptions), the Payments portion of the REST APIs is mostly at parity with Classic. Moving forward, this is the SDK that PayPal will be investing in and improving, so it's recommended that any new integrations use this SDK.
Recently, the .NET SDK repo on GitHub was updated with a Wiki that should hopefully make it easier to get started using the SDK. Also, a lot of work has also been put into the included samples project to help show how to use SDK with various use cases. And if there's a use case that's missing or needs better/more explanation, definitely don't hesitate to let me know on there. :)
PayPal Classic Merchant SDK
The Merchant SDK has been around for awhile and all the classes are auto-generated from PayPal's publicly-available WSDL schema files. While it provides support for every Express Checkout-related feature, using it is a bit more cumbersome than the REST-based SDK.
PayPal is no longer actively supporting the Merchant SDK and will only be providing bug fixes when necessary. For this reason, PayPal doesn't recommend using this SDK for new integrations.
If you find a feature that you enjoy using in this SDK that isn't available in the REST counterpart, please let me know here or on GitHub. One issue we've noticed for people looking to switch is the REST API does not provide payment history details for payments made via Classic calls. The PayPal SDK team is currently looking into ways this support can be added to the REST-based SDKs to make it easier for developers to make the transition.
The only option you have is to call rest api from asp.net web pages.
You can find the source code of rest api at following places.
https://github.com/paypal/rest-api-sdk-dotnet
http://paypal.github.io/sdk/
Borek,
if you just want PayPal Express Checkout the easiest way to do it is to simply create a PayPal "Buy It Now" button. You don't need to code anything.
You can find out how to do it here https://developer.paypal.com/docs/classic/paypal-payments-standard/ht_create-pps-buttons/ but the basic steps are:
Create the button inside PayPal.
Copy the button code inside PayPal.
Paste it into your website/email whatever.
Hope that helps!

Implementing Payment Gateways in ASP.net Web Application

I an developing a web application in ASP.Net using C#, under .Net Framework 4.0. Now its time to implement payment page in that application. I am asked to provide the facility of every payment mechanism (pay-pal, credit card, visa card, master card etc.)
Now to be honest i even don't know the difference among these card type :(. Please guide me how to achieve this and if possible also suggest the tentative time for implementing this.
PayPal can take just about all of these types - why not just have them process everything?
Its hard to give you an answer of implementation time as I have no idea what your application is like - but its fairly easy to setup.
Here is a paypal for dummies link:
http://www.dummies.com/how-to/content/adding-paypal-to-your-web-site.html

Create Subscription programmatically in Reporting Services

I need to create a subscription for my SSRS reports in an asp.net page.
I can show the reports in a reportviewer using Reporting.WebForms.
SSRS is on the another computer in my network. For reportviewer, I use "admin" and "pass" for credentials which is the SSRS machine's admin username and password and it's ok. And admin has all the roles for SSRS reports.
But when I try to createSubscription via ReportingService2006 web service I can't make it.
I'm not a professional nor amateur. searched the web a lot.
tried this and the odetocode version of this:
1. technet - something similar 1
But couldn't make it happen. Really appriciate any help. thx in advance.
An alternative would be to setup some of your reports using "Data driven subscriptions". I find its pretty easy to manage this if your going to be doing alot of updates to your report subscriptions. It will allow you to interact with user subscriptions via a custom SQL table.
You can find a MSDN tutorial on setup for Data driven subscriptions here
There is a good article and source code here, it's the best info on this topic I've found so far.
http://www.codeproject.com/Articles/36009/Programmatically-Playing-With-SSRS-Subscriptions
There is also a class reference here
http://msdn.microsoft.com/en-us/library/ms165967%28v=sql.90%29

Resources