Skip to content
yuansfer SDK for golang language
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
.gitattributes
.gitignore
.travis.yml
LICENSE
README.md
config.go
create_qrcode.go
doc.go
handle.go
instore_add.go
instore_pay.go
micropay.go
query.go
refund.go
reverse.go
securepay.go
yuansfer_tran.go

README.md

golang_sdk Build Status GoDoc

yuansfer SDK for golang language

about

Add the Configuration File named yuansfer-api.yaml into your project.

yuansfer_host:
  # sandbox host url
  - https://mapi.yuansfer.yunkeguan.com
  # product host url
  - https://mapi.yuansfer.com
online_payment_url: /appTransaction/v2/securepay
online_query_url: /appTransaction/v2/securepay-reference-query
online_refund_url: /appTransaction/v2/securepayRefund
instore_add_url: /app-instore/v2/add
instore_pay_url: /app-instore/v2/pay
instore_create_qrcode: /app-instore/v2/create-trans-qrcode
instore_refund_url: /app-instore/v2/refund
instore_reverse_url: /app-instore/v2/reverse
micropay_url: /micropay/v2/prepay
token:
  # please get Yuansfer Token from support@yuansfer.com
  online_token: 'ONLINE_TOKEN'
  instore_token: 'INSTORE_TOKEN'
  micropay_token: 'MICROPAY_TOKEN'
# please get the value of Password Prefix at:
# https://docs.yuansfer.com/en/#notice
password_prefix: 'PASSWORD_PREFIX'
You can’t perform that action at this time.