Inhalte aufrufen

Profilbild

Payment by credit card


  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
9 Antworten zu diesem Thema

#1 svipla

svipla

    Member

  • Members
  • PunktPunkt
  • 15 Beiträge

Geschrieben: 27 August 2014 - 08:55

Hello everyone
When a customer chooses to pay with a credit card, I would like to give the opportunity to pay the order and not only save the data of credit card. can I do this?
In other words, I want to connect to my bank to complete the order.
Thank you



#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3801 Beiträge

Geschrieben: 27 August 2014 - 09:07

Yes, for instance the PayPal Direct plugin (see Additional Plugins) serves this.


Marcus Gesing

Smartstore AG


#3 svipla

svipla

    Member

  • Members
  • PunktPunkt
  • 15 Beiträge

Geschrieben: 27 August 2014 - 11:30

Thank you for your help
I don't want to use PayPal, but configure the pos of my bank.
Thank you



#4 robinmuk

robinmuk

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 59 Beiträge

Geschrieben: 27 August 2014 - 20:00

Then you will have to code a plugin to connect with your bank. If you already have a merchant bank physical terminal you might ask your bank to have an "open keyboard"  or "no-swipe" priviledge to key the CD data without swiping it, in which case you will have to manually process each payment 


Best regards

 

Robin


#5 svipla

svipla

    Member

  • Members
  • PunktPunkt
  • 15 Beiträge

Geschrieben: 28 August 2014 - 09:27

Thank you
how can I create a plugin for SmartStore and insert it into the CMS?
I would like to create a plugin for direct payment to my bank.
Thank you



#6 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3801 Beiträge

Geschrieben: 28 August 2014 - 12:25

See for instance

http://community.sma...gration-plugin/

http://community.sma...ay-development/

http://community.sma...-method-plugin/


Marcus Gesing

Smartstore AG


#7 svipla

svipla

    Member

  • Members
  • PunktPunkt
  • 15 Beiträge

Geschrieben: 01 September 2014 - 10:42

Thank you Marcus

I don't understand this:

"

Then you have to add your service references to the project. Project->Add->Service Reference->Enhanced->Add Web Reference 

Whis project?

Now you have to choose which type of payment you're implementing there are:
Standard = All payment information is entered on the site
Redirection = A customer is redirected to a third-party site in order to complete the payment
Button = A button is displayed on shopping cart page
StandardAndButton = All payment information is entered on the site and is available via button
You determine the type in the PaymentProcessor->PaymentMethodType

Where is PaymentProcessor->PaymentMethodType?

"

I'm using VS2012. Is there a documentation?



#8 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3801 Beiträge

Geschrieben: 01 September 2014 - 11:30

"Whis project?"
Your newly created payment plugin project. This step is optional and only possible if the payment gateway of your bank offers a 
 
"Where is PaymentProcessor->PaymentMethodType?"
See SmartStore.Services.Payments.PaymentMethodType
 
"Is there a documentation?"
Unfortunately not yet. I would take a look at the source code of an existing payment plugin, for instance PayPal Standard.
PayPalStandardPaymentProcessor inherits from PaymentMethodBase and that's basically where all the music plays.

Marcus Gesing

Smartstore AG


#9 svipla

svipla

    Member

  • Members
  • PunktPunkt
  • 15 Beiträge

Geschrieben: 01 September 2014 - 11:50

Thank you Marcus

I describe you what I did:

1. I copied CashOnDelivery in the folder src \ Plugins

2. Renamed CashOnDelivery with Pos everywhere

 

And now?

 

What are the other steps?

I read: "Now you have to choose which type of payment you're implementing there are:", Where I define the type of payment?

 

When a user chooses the new payment method, I have to perform a redirect to my bank, where I have to enter the code to do this?

 

Thank you very much



#10 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3801 Beiträge

Geschrieben: 01 September 2014 - 17:26

"And now?"
d0ndela wrote about the steps here. Do not forget to change the ProjectGuid in the project file if you copy a plugin project.
 
"Where I define the type of payment?"
As you can see in the PayPal Standard plugin you have to override the PaymentMethodType property in your Payment Processor.
For redirection just return PaymentMethodType.Redirection (as in the PayPal Standard plugin).
 
"I have to perform a redirect to my bank, where I have to enter the code to do this?"
As I mentioned, most is done in your Payment Processor which inherits from PaymentMethodBase. Take a look at PaymentMethodBase what methods and properties to override.

Marcus Gesing

Smartstore AG