{"id":18821956,"url":"https://github.com/qor/amazon-pay-sdk-go","last_synced_at":"2025-04-14T01:04:34.556Z","repository":{"id":57482251,"uuid":"120590025","full_name":"qor/amazon-pay-sdk-go","owner":"qor","description":"Amazon Pay Go SDK","archived":false,"fork":false,"pushed_at":"2020-10-02T13:21:59.000Z","size":47,"stargazers_count":33,"open_issues_count":3,"forks_count":12,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-14T01:04:23.814Z","etag":null,"topics":["amazon-pay","amazon-pay-sdk","golang","sdk"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-07T09:01:52.000Z","updated_at":"2024-08-27T15:38:21.000Z","dependencies_parsed_at":"2022-09-02T04:20:51.090Z","dependency_job_id":null,"html_url":"https://github.com/qor/amazon-pay-sdk-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qor%2Famazon-pay-sdk-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qor%2Famazon-pay-sdk-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qor%2Famazon-pay-sdk-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qor%2Famazon-pay-sdk-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qor","download_url":"https://codeload.github.com/qor/amazon-pay-sdk-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248804803,"owners_count":21164134,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amazon-pay","amazon-pay-sdk","golang","sdk"],"created_at":"2024-11-08T00:46:48.753Z","updated_at":"2025-04-14T01:04:34.525Z","avatar_url":"https://github.com/qor.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Amazon Pay Go SDK\n\nAmazon Pay SDK for Golang\n\n## Install\n\n```sh\ngo get github.com/qor/amazon-pay-sdk-go\n```\n\n## Usage\n\n```go\nimport amazonpay \"github.com/qor/amazon-pay-sdk-go\"\n\nfunc main() {\n  var client = amazonpay.New(\u0026amazonpay.Config{\n    MerchantID: \"my merchant id\",\n    AccessKey:  \"my access key\",\n    SecretKey:  \"my secret key\",\n    Sandbox:    true,\n    Region:     \"jp\",\n  })\n\n  // Set order details such as order amount and explanation in Order Reference\n  client.SetOrderReferenceDetails(orderReferenceID, amazonpay.OrderReferenceAttributes) (amazonpay.SetOrderReferenceDetailsResult, error)\n\n  // confirm order details\n  client.ConfirmOrderReference(orderReferenceID) error\n\n  // Returns the details and current state of the Order Reference object\n  client.GetOrderReferenceDetails(orderReferenceID, addressToken) (amazonpay.GetOrderReferenceDetailsResponse, error)\n\n  // Process secures the funds specified for the payment method stored in the Order Reference\n  client.Authorize(orderReferenceID, authorizationReferenceID, amount, amazonpay.AuthorizeInput) (amazonpay.AuthorizeResponse, error)\n\n  // Returns the total authorized amount for authorization status and authorization\n  client.GetAuthorizationDetails(authorizationID) (amazonpay.GetAuthorizationDetailsResponse, error)\n\n  // CloseAuthorization Close authorization\n  client.CloseAuthorization(authorizationID, closureReason) error\n\n  // Request funds from the authorized payment method\n  client.Capture(authorizationID, captureReferenceID, captureAmount, amazonpay.CaptureInput) (amazonpay.CaptureResponse, error)\n\n  // Returns the detailed sales request status and the total amount refunded by sales request\n  client.GetCaptureDetails(captureID) (amazonpay.GetCaptureDetailsResponse, error)\n\n  // Complete order reference and will not be able to generate a new authorization from this Order Reference\n  client.CloseOrderReference(orderReferenceID, closureReason) error\n\n  // CancelOrderReference Cancels a previously confirmed order reference\n  client.CancelOrderReference(orderReferenceID, reason) error\n\n  // Refund refund the funds requested\n  client.Refund(captureID, refundReferenceID, refundAmount, amazonpay.RefundInput) (amazonpay.RefundResponse, error)\n\n  // Get refund details\n  client.GetRefundDetails(refundID) (amazonpay.GetRefundDetailsResponse, error)\n}\n```\n\n## Verify IPN Notification\n\nVerify ipn notification\n\n```go\namazonpay.VerifyIPNRequest(req)\n```\n\n## Demo\n\nWe have deployed a demo that integrated Amazon Pay sandbox mode, visit it here: [https://demo.getqor.com](https://demo.getqor.com)\n\nYou can place orders with our Amazon sandbox account: `demo@getqor.com` / `qordemo`\n\nAfter placed orders, you can manage them via [our admin interface]((https://demo.getqor.com/admin)), like `take auth`, `capture`, `refund` orders, the admin interface is generated with [QOR Admin](http://github.com/qor/admin)\n\n#### Source code of this demo\n\n[https://github.com/qor/qor-example](https://github.com/qor/qor-example)\n\n## License\n\nReleased under the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqor%2Famazon-pay-sdk-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqor%2Famazon-pay-sdk-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqor%2Famazon-pay-sdk-go/lists"}