Skip to content

Yoomoney payment notification function for Yandex Cloud Functions

License

Notifications You must be signed in to change notification settings

covrom/ypayfunc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Yoomoney payment notification function for Yandex Cloud Functions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published