Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 1.25 KB

README.md

File metadata and controls

22 lines (19 loc) · 1.25 KB

ypayfunc

The Yoomoney (Yandex Money) payment notification function for Yandex cloud functions accepts incoming payments from a credit card or Yandex money and then sends an email notifying that payment. You can change this behavior to whatever you want.

Quick start:

  1. See https://yandex.ru/dev/money/apps/?_openstat=settings;other;apps;api for basic instructions.
  2. Create public Yandex cloud function here: https://console.cloud.yandex.ru
  3. Create archive file: zip -r archive.zip *.go go.mod go.sum
  4. Upload archive into Yandex cloud function and create new version with:
  • runtime golang114
  • entrypoint main.YaPay
  • memory 128m
  • execution-timeout 20s
  1. Set environment vars:
  1. Press testing button at https://yoomoney.ru/transfer/myservices/http-notification and see logs of function in Yandex cloud
  2. Create and run html file, using testpay_example.html template. Ensure to change your identity in receiver field and fill sum field