ypayfunc

command module
v0.0.0-...-732b2f9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 13 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL