Accept and process a request from the wayforpay.com service to the WP website
What to do:
Configurate the receipt of the data requests and their processing. Send the answer OK to the service (i.e. the request is accepted).
From the request we will probably only need email, telephone and understanding that the payment has passed successfully.
On our website we create an account (subscriber role) with these data. Admins of WordPress.
- If the account with such e-mail is not yet: It - we create an account with the fields: User Name (e-mail that you received), E-mail (this e-mail), password (e.g. Atlet88), the field "Payed to" (Blog Date + 1 month), the field Phone (the number of phone that you received). To my email to send a letter such as "A pay for 1 month by an unexisting email. And indicate this e-mail.”
If you have an account with this e-mail:
A) If the field "Payed to" > Blog Date, then re-registrate the field, "Payed to" = current value + 1 month.
b) If the field "Payed to"
Отвечу тут на некоторые вопросы.
1. Ничего на магазин передавать не надо (человек для оплаты перейдет просто по платежной ссылке, это уже есть).
Надо только принять запрос и дать ответ OK на сервис.
2. Что такое Дата блога ?
Это время время на сайте, как я понимаю. (только важна одна дата, без времени).
$blogtime = current_time('timestamp',0);
Client's review of cooperation with Andrew K
Accept and process a request from the wayforpay.com service to the WP websiteHe did everything greatly and quickly.
I recommend it.
I will contact in the future.
Freelancer's review of cooperation with Rostislav Zima
Accept and process a request from the wayforpay.com service to the WP websiteAlways in contact, if there are questions explains, with the payment of the problems not, with the setting of the task as well. I recommend cooperation
-
5599 394 9 3 I have a great experience with WordPress.
Ready to implement
I have experience with payment systems integration.
Working with wayforpay
Write
-
5007 139 0 Good day, I will do it without any problems, there is already a ready check-in under the webpage, recently done on the site, I am correcting under your logic, write, discuss
-
925 56 0 Can you see the line of answer?
The rest will be programmed on this page.
What is the Blog Date?
-
418 2 0 The exchange process is a bit different.
First you form the object of payment (order, in the sense of the usual online store), then your data is transferred to the system. It returns the data with the relevant status.
I have a few online shops with this pay. the system.
There is experience of implementation on both self-writing systems and popular CMSs
Write it. The amount is agreed
-
255 18 4 Hello I am about your post I can help.
Ready to discuss the details of the project and show your portfolio.
I am a Full Stack Php Developer.
For you my proposals:
- Adaptive slope (it is when your site looks equally and well on different devices).
I write a valid and clean code without errors, it helps search engines read the site code faster and download it faster.
Pixel perfect (the site looks like a point in point on the design package).
I do everything in good quality and at the time.
…
Web, UI and UX-Desinger
The HTML5
The CSS3
by Sass
Adaptive crossbrowser,
JavaScript and jQuery
Wordpress and Woocommerce
The Opencart
The 1C-Bitrix
by PHP
The MODX
by Laravel
View of JS
by Python
React JS
Android / iOS
by Java
by MySQL
Development of Parsers
I will be happy to discuss and cooperate with you.
-
542 26 0 Good afternoon Rostislav.
I specialize in integration with various app services, work with wordpress and payment systems. The wayforpay documentation. The task is clear, ready to begin.
-
Rostislav Zima StudentUa
Ответ на вопрос.
Можно ли посмотреть строку ответа?
Поддержка сервиса не смогла мне внятно обьяснить или дать пример.
Есть инструкция по API на русском, может тут пример есть
https://wiki.wayforpay.com/display/AD/Api+documentation -
Rostislav Zima StudentUa
Можно ли посмотреть строку ответа?
Вот пример, как я полагаю.Уведомление мерчанта о статусе транзакции
Для авторизованных и проверенных заказов (а также при смене статуса заказа) сервер WayForPay направляет на serviceUrl запрос (HTTP_POST) включающий в себя данные заказа.
Данная информация дополняется контрольной подписью HMAC_MD5.
В случае, если WayForPay НЕ получит корректный ответ от сервера торговца, то система будет направлять запросы в течении 4-х суток или до получения правильного ответа.
Пример запроса на serviceUrl
{
"merchantAccount":"test_merchant",
"orderReference":"DH783023",
"merchantSignature":"",
"amount":1547.36,
"currency":"UAH",
"authCode":"541963",
"email":"[email protected]",
"phone":"380501234567",
"createdDate":12345678,
"processingDate":12345678,
"cardPan":"41****8217",
"cardType":"visa",
"issuerBankCountry":"980",
"issuerBankName":"Privatbank",
"recToken":"",
"transactionStatus":"Approved",
"reason":"ok",
"reasonCode":"1100",
"fee":0,
"paymentSystem":"card"
}
Пример для разбора строки json$json=file_get_contents('php://input');$obj= json_decode($json, TRUE);Пример корректного ответа от мерчанта
{
"orderReference":"DH783023",
"status":"accept",
"time":1415379863,
"signature":""
}
-
я так понимаю оплачивается доступ. Рекомендую сделать немного иначе - формировать строки доступа, которые клиенты будут оплачивать(как заказ). Так у вас останется история оплат с периодами действия.
доступы привязаны к пользователю и объекту, доступ к чему оплачивается. так же доступы имеют период действия.
Мы так реализовывали платный доступ к видеокурсам
Есть примеры. могу показать в ЛС
telegram:
https://t.me/sergofox -
Current freelance projects in the category Javascript and Typescript
I am looking for an experienced Full Stack developer to create a SaaS service for online stores.Service idea: The client uploads a link to their product feed (XML or CSV). The service automatically retrieves the products, takes their photos, and creates new advertising images based on ready-made templates: price, discount, logo, promotional tags, etc. There should also be… Javascript and Typescript, Web Programming ∙ 1 day 23 hours back ∙ 82 proposals |
Development of a WebGL/Three.js scene with generation and export of 3D (snapshot) from an animated shaderObject Description:The project is a designer table shaped like a realistic, deep whirlpool (a central vortex that smoothly transitions from a wide horizontal tabletop to a thin elegant leg). Task Essence:A WebGL / Creative Coding developer is required to create an interactive 3D… Javascript and Typescript, Web Programming ∙ 2 days 19 hours back ∙ 30 proposals |
Support and development of the cleaning company's website
20 USD
I'm looking for a web developer/webmaster for long-term support and development of a cleaning company's website. Website: https://donely.ca About the project DoneLy Home Services is a cleaning service company in Canada that is actively growing and expanding its geographical… Javascript and Typescript, Web Programming ∙ 4 days 21 hours back ∙ 64 proposals |
Development of a website according to the specifications on FramerYou need to create a website based on the parameters in the technical specification. https://docs.google.com/document/d/1ODO2C9Krb4AaMiJz9wfbNzWlAyA2FwCCHL8r0biajUY/edit?usp=sharing Please provide your actual rate based on this design. HTML & CSS, Javascript and Typescript ∙ 5 days 22 hours back ∙ 29 proposals |
Development of an interactive Palworld map for the websiteWe need to develop an interactive map for Palworld based on the example: https://palworld.gg/map We need not just a static image, but a full-fledged interactive map where users can view locations, toggle object categories on/off, search for specific points, and interact with… HTML & CSS, Javascript and Typescript ∙ 7 days 13 hours back ∙ 36 proposals |