First if you know VB.NET then you can add another assembly and create the provider there. also you can use Reflector to see the code in VB.NET so that you can see how it is done.
How the payment provider works is that you create a class then you impliment the IPaymentProvider interface (If this payment provider works like PayPal Standerd that means that you go off to there (your payment providers) site then you would impliment IPayPalPaymentProvider that also impliments IPaymentProvider)
Now you have to add all the members from IPaymentProvider that would be
public class DFGDPaymentProvider : IPaymentProvider {
public Transaction Authorize(Order order){
//Put you code here
}
public Transaction Charge(Order order){
//Put you code here
}
public Transaction Refund(Transaction transaction, Order order){
//Put you code here
}
}
Now to fill in this logic you have to find out how to connect to your payment provider like do they use a WebService or Http Post or whatever
what info do you have to send to them how do format the data were do you send the data, etc...
The thing with PaypalProPaymentProvider is that the main logic is delegated to Store\Services\PaymentService\PayPal\PayPalService.cs so you look there to get the idea.
Now most of these methods take a Order that has the information of the current order like CreditCard Info, total amount, tax, etc...
And they return a Transaction that you store the information that was returnd from the PaymentProvider and some more info.
Find a bug?
Create a Work Item for a fast response.. Want to help?
Create a patch for us!