简体   繁体   中英

accept payment from credit card(Magento 1.9.4.2) php

The Magento 1.9.4.2 has deprecated the Credit Card payment method, so I've decided to get the config.xml and system.xml from older version which is 1.8. It works btw.

My question is, once the customer input their credit card info, I want the bank(gateway for development) to verify it(I'm using a devsecure gateway service URL). My teacher told me to use cURL to do it but I am worried about how I'm going to do it. I'm new to Magento as well as PHP that's why I have no idea what to open to the directory. I am completely lost.

I don't know where to implement the cURL, in system.xml??cause it's where the Credit card functionalities are located at

Magento has deprecated the Card Method in v1 for a reason. It was usually set to storing the card details which is not a secure way nowadays, as now everything is tokenised.

Every card provider has an API (not sure what devsecure is and how it is working, some docs would be useful).

What you should do, is create a custom module for the payment gateway (full fledged module) that actually handles the authorisation/charging aspect.

There are plenty of open source examples that would allow you to replicate some functionalty.

As it stands now the question doesn't provide enough details to help. Generally you need a custom module with a Payment Model for devsecure. the charging aspect would be handled using simple cURL requests within the module, or you could load a library like Guzzle to handle the HTTP requests.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM