All Projects → qor → Amazon Pay Sdk Go

qor / Amazon Pay Sdk Go

Licence: mit
Amazon Pay Go SDK

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Labels

Projects that are alternatives of or similar to Amazon Pay Sdk Go

Js Sdk
A bridge between the Yebo E-Commerce and your website.
Stars: ✭ 10 (-64.29%)
Mutual labels:  sdk
Voucherify Android Sdk
Android SDK for Voucherify - coupons, vouchers, promo codes
Stars: ✭ 13 (-53.57%)
Mutual labels:  sdk
Ask Utils
utility functions for ask-sdk
Stars: ✭ 20 (-28.57%)
Mutual labels:  sdk
Appkefu android demo v4
微客服 安卓客服demo 4.x 版本 (IM, SDK, ChatUI, helpdesk, 客服系统 )
Stars: ✭ 11 (-60.71%)
Mutual labels:  sdk
Sgdk
SGDK - A free and open development kit for the Sega Mega Drive
Stars: ✭ 868 (+3000%)
Mutual labels:  sdk
Resingo
[UNMAINTAINED] Unofficial golang sdk for resin.io
Stars: ✭ 14 (-50%)
Mutual labels:  sdk
T1 Node
Node SDK for MediaMath Platform APIs
Stars: ✭ 9 (-67.86%)
Mutual labels:  sdk
Aeris Ios Library
Contains a demo project utilizing the AerisWeather SDK for iOS to help you get started with using our library.
Stars: ✭ 21 (-25%)
Mutual labels:  sdk
Zhima
芝麻信用商家服务PHP版SDK。目前为止,是github上最好用的php版SDK
Stars: ✭ 13 (-53.57%)
Mutual labels:  sdk
Gentleman
Full-featured, plugin-driven, extensible HTTP client toolkit for Go
Stars: ✭ 886 (+3064.29%)
Mutual labels:  sdk
Php Yandex Alisa
PHP Yandex SDK для создания навыков Алисы.
Stars: ✭ 12 (-57.14%)
Mutual labels:  sdk
Worldpay Within Sdk
Worldpay Within SDK to allow payments within IoT. Written in Go.
Stars: ✭ 12 (-57.14%)
Mutual labels:  sdk
Chat21 Ios Sdk
DEPRECATED
Stars: ✭ 15 (-46.43%)
Mutual labels:  sdk
Smartystreets Go Sdk
The official client libraries for accessing SmartyStreets APIs from Go.
Stars: ✭ 11 (-60.71%)
Mutual labels:  sdk
Gocertcenter
CertCenter API Go Implementation
Stars: ✭ 21 (-25%)
Mutual labels:  sdk
Vst3sdk
VST 3 Plug-In SDK
Stars: ✭ 853 (+2946.43%)
Mutual labels:  sdk
Alibaba Cloud Sdk Go
Alibaba Cloud SDK for Go
Stars: ✭ 876 (+3028.57%)
Mutual labels:  sdk
Checkout Sdk Node
Checkout.com SDK for Node.js. Documentation here:
Stars: ✭ 28 (+0%)
Mutual labels:  sdk
Intellij Sdk Docs
IntelliJ SDK Platform Documentation
Stars: ✭ 913 (+3160.71%)
Mutual labels:  sdk
Tiny Qiniu
A tiny qiniu sdk for uploading file.
Stars: ✭ 15 (-46.43%)
Mutual labels:  sdk

Amazon Pay Go SDK

Amazon Pay SDK for Golang

Install

go get github.com/qor/amazon-pay-sdk-go

Usage

import amazonpay "github.com/qor/amazon-pay-sdk-go"

func main() {
  var client = amazonpay.New(&amazonpay.Config{
    MerchantID: "my merchant id",
    AccessKey:  "my access key",
    SecretKey:  "my secret key",
    Sandbox:    true,
    Region:     "jp",
  })

  // Set order details such as order amount and explanation in Order Reference
  client.SetOrderReferenceDetails(orderReferenceID, amazonpay.OrderReferenceAttributes) (amazonpay.SetOrderReferenceDetailsResult, error)

  // confirm order details
  client.ConfirmOrderReference(orderReferenceID) error

  // Returns the details and current state of the Order Reference object
  client.GetOrderReferenceDetails(orderReferenceID, addressToken) (amazonpay.GetOrderReferenceDetailsResponse, error)

  // Process secures the funds specified for the payment method stored in the Order Reference
  client.Authorize(orderReferenceID, authorizationReferenceID, amount, amazonpay.AuthorizeInput) (amazonpay.AuthorizeResponse, error)

  // Returns the total authorized amount for authorization status and authorization
  client.GetAuthorizationDetails(authorizationID) (amazonpay.GetAuthorizationDetailsResponse, error)

  // CloseAuthorization Close authorization
  client.CloseAuthorization(authorizationID, closureReason) error

  // Request funds from the authorized payment method
  client.Capture(authorizationID, captureReferenceID, captureAmount, amazonpay.CaptureInput) (amazonpay.CaptureResponse, error)

  // Returns the detailed sales request status and the total amount refunded by sales request
  client.GetCaptureDetails(captureID) (amazonpay.GetCaptureDetailsResponse, error)

  // Complete order reference and will not be able to generate a new authorization from this Order Reference
  client.CloseOrderReference(orderReferenceID, closureReason) error

  // CancelOrderReference Cancels a previously confirmed order reference
  client.CancelOrderReference(orderReferenceID, reason) error

  // Refund refund the funds requested
  client.Refund(captureID, refundReferenceID, refundAmount, amazonpay.RefundInput) (amazonpay.RefundResponse, error)

  // Get refund details
  client.GetRefundDetails(refundID) (amazonpay.GetRefundDetailsResponse, error)
}

Verify IPN Notification

Verify ipn notification

amazonpay.VerifyIPNRequest(req)

Demo

We have deployed a demo that integrated Amazon Pay sandbox mode, visit it here: https://demo.getqor.com

You can place orders with our Amazon sandbox account: [email protected] / qordemo

After placed orders, you can manage them via our admin interface, like take auth, capture, refund orders, the admin interface is generated with QOR Admin

Source code of this demo

https://github.com/qor/qor-example

License

Released under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].