×

注意!页面内容来自https://www.developer.amazon.com/zh/docs/amazon-pay-checkout/v1-test-your-integration.html,本站不储存任何内容,为了更好的阅读体验进行在线解析,若有广告出现,请及时反馈。若您觉得侵犯了您的利益,请通知我们进行删除,然后访问 原网页

< data-d="true" data-d-version="6.1.15">.jYcpAw{position:fixed;top:0;left:0;width:100%;display:flex;flex-direction:column;color:#C5C6C9;background:#161D26;transition:transform 0.2s ease-in-out;transform:translateY(0);z-index:1000;padding:0;}/*!sc*/ data-d.g1[id="sc-FEMpB"]{content:"jYcpAw,"}/*!sc*/ .nIOIS{height:0px;}/*!sc*/ data-d.g2[id="sc-gjcoXW"]{content:"nIOIS,"}/*!sc*/ .KIERA{background:#161D26;position:relative;border-bottom:1px solid #2D333B;display:flex;padding:0 24px 0 8px;z-index:10;}/*!sc*/ @media (max-width: 1023px){.KIERA{display:none;}}/*!sc*/ data-d.g4[id="sc-fLDLck"]{content:"KIERA,"}/*!sc*/ .bmMgQK{display:flex;}/*!sc*/ data-d.g5[id="sc-dycHyt"]{content:"bmMgQK,"}/*!sc*/ .dPPsgg{position:relative;z-index:10;}/*!sc*/ data-d.g6[id="sc-jbAkgO"]{content:"dPPsgg,"}/*!sc*/ .jPijJy{padding:18px 12px 0 12px;height:100%;display:flex;align-items:center;cursor:pointer;}/*!sc*/ .jPijNo{padding:16px 12px 0 12px;height:100%;display:flex;align-items:center;cursor:pointer;}/*!sc*/ data-d.g7[id="sc-gNZgCX"]{content:"jPijJy,jPijNo,"}/*!sc*/ .xYSPR{font-size:14px;line-height:18px;font-weight:500;font-family:AmazonEmber-Regular,Amazon Ember;color:#C5C6C9;white-space:nowrap;}/*!sc*/ data-d.g8[id="sc-kfeOyU"]{content:"xYSPR,"}/*!sc*/ .hIEnoK{position:relative;padding:0 4px 20px 4px;display:flex;justify-content:center;}/*!sc*/ .hIEnoK:hover .sc-kfeOyU{color:#FFFFFF;}/*!sc*/ data-d.g9[id="sc-hRDKVd"]{content:"hIEnoK,"}/*!sc*/ .cpNglm{position:relative;padding:0 4px 20px 4px;display:flex;justify-content:center;text-decoration:none;color:inherit;}/*!sc*/ .cpNglm:hover{text-decoration:none;color:inherit;}/*!sc*/ .cpNglm:hover .sc-kfeOyU{color:#FFFFFF;}/*!sc*/ data-d.g10[id="sc-jBIHhB"]{content:"cpNglm,"}/*!sc*/ .cayELl{position:absolute;width:100%;height:1px;border-radius:3px 3px 0 0;bottom:0;left:0;background:#C5C6C9;visibility:hidden;opacity:0;}/*!sc*/ data-d.g11[id="sc-cMqPwU"]{content:"cayELl,"}/*!sc*/ .dxBiLe{display:flex;align-items:center;gap:4px;}/*!sc*/ data-d.g12[id="sc-jUkaYT"]{content:"dxBiLe,"}/*!sc*/ .hiDKur{display:flex;align-items:center;transform:scaleY(1);transition:transform 0.2s ease;}/*!sc*/ data-d.g13[id="sc-deSjom"]{content:"hiDKur,"}/*!sc*/ .cetsRs{display:flex;position:relative;background-color:#161D26;}/*!sc*/ data-d.g14[id="sc-jHswkR"]{content:"cetsRs,"}/*!sc*/ .iMHfPQ{align-items:center;color:#C5C6C9;display:inline-flex;gap:6px;text-decoration:none!important;width:fit-content;}/*!sc*/ .iMHfPQ:hover{color:#161D26;text-decoration:unset;}/*!sc*/ .cUfBSh{align-items:center;color:#C5C6C9;display:inline-flex;gap:6px;text-decoration:none!important;width:fit-content;}/*!sc*/ .cUfBSh:hover{color:#FFFFFF;text-decoration:underline;}/*!sc*/ data-d.g16[id="sc-jZTQcj"]{content:"iMHfPQ,cUfBSh,"}/*!sc*/ .lhXMsM.lhXMsM{color:#C5C6C9;font-family:AmazonEmber-Regular,Amazon Ember;font-weight:400;font-size:12px;line-height:16px;margin:0;font-size:14px;line-height:24px;}/*!sc*/ .lhXMsM.lhXMsM:hover{color:#161D26;}/*!sc*/ .dKGGwi.dKGGwi{color:#C5C6C9;font-family:AmazonEmber-Regular,Amazon Ember;font-weight:400;font-size:12px;line-height:16px;margin:0;font-size:16px;line-height:18px;}/*!sc*/ .dKGGwi.dKGGwi:hover{color:#FFFFFF;text-decoration:underline;}/*!sc*/ .lkXsVP.lkXsVP{color:#C5C6C9;font-family:AmazonEmber-Regular,Amazon Ember;font-weight:400;font-size:12px;line-height:16px;margin:0;font-size:16px;line-height:18px;}/*!sc*/ .lkXsVP.lkXsVP:hover{color:#FFFFFF;}/*!sc*/ data-d.g18[id="sc-kXOizl"]{content:"lhXMsM,dKGGwi,lkXsVP,"}/*!sc*/ .bMTClm{position:absolute;left:0;top:-100%;width:100%;background-color:#161D26;z-index:-1;visibility:hidden;transition:top 0.3s ease;}/*!sc*/ @media (max-width: 1023px){.bMTClm{display:none;}}/*!sc*/ data-d.g24[id="sc-dVupuq"]{content:"bMTClm,"}/*!sc*/ .cIOeZM{max-width:unset;height:18px;width:auto;}/*!sc*/ data-d.g26[id="sc-gpHbIA"]{content:"cIOeZM,"}/*!sc*/ .eNETkm{background:none;border:none;cursor:pointer;display:inline-block;margin:0;padding:0;text-decoration:none;}/*!sc*/ data-d.g27[id="sc-hUAZgl"]{content:"eNETkm,"}/*!sc*/ .fAldYp{border:1px solid #8A8E92;border-radius:16px;padding:3px 24px;cursor:pointer;font-weight:500;justify-content:center;align-items:center;width:fit-content;white-space:nowrap;}/*!sc*/ .fAldYp:hover{border:1px solid #FFFFFF;background-color:#FFFFFF;color:#161D26!important;}/*!sc*/ data-d.g28[id="sc-flQbIK"]{content:"fAldYp,"}/*!sc*/ .hFVEfa{display:flex;border:1px solid #8A8E92;border-radius:50%;align-items:center;justify-content:center;gap:3px;width:32px;height:32px;padding:14px 7px;cursor:default;background-color:transparent;}/*!sc*/ data-d.g29[id="sc-gQJZgv"]{content:"hFVEfa,"}/*!sc*/ .gngtls{width:4px;height:4px;border-radius:50%;background-color:#8A8E92;}/*!sc*/ data-d.g30[id="sc-bCjwNj"]{content:"gngtls,"}/*!sc*/ .drKwug{position:relative;}/*!sc*/ data-d.g31[id="sc-iXqmyu"]{content:"drKwug,"}/*!sc*/ .bMVeYA{position:static;top:100%;right:0;width:86%;margin:auto;border-bottom:1px solid #2D333B;z-index:1001;}/*!sc*/ data-d.g32[id="sc-dJkDXt"]{content:"bMVeYA,"}/*!sc*/ .fcdBMK{display:flex;padding:20px 0;align-items:center;font-size:16px;color:#B6B6B6;}/*!sc*/ data-d.g33[id="sc-lertIE"]{content:"fcdBMK,"}/*!sc*/ .jynDwT{position:absolute;background:#161D26;border:1px solid #50565C;padding:4px 0;min-width:120px;max-width:fit-content;visibility:hidden;opacity:0;z-index:200;border-radius:8px;box-shadow:0px 8px 32px 0px #161D2633;margin-top:4px;}/*!sc*/ .jymcUB{position:absolute;background:#161D26;border:1px solid #50565C;padding:4px 0;min-width:216px;max-width:fit-content;visibility:hidden;opacity:0;z-index:200;border-radius:8px;box-shadow:0px 8px 32px 0px #161D2633;margin-top:4px;}/*!sc*/ data-d.g34[id="sc-bHTlQz"]{content:"jynDwT,jymcUB,"}/*!sc*/ .kqUksg{height:100%;}/*!sc*/ data-d.g35[id="sc-jdabBK"]{content:"kqUksg,"}/*!sc*/ .bpFhJU{width:100%;color:#91979E;cursor:pointer;display:flex;justify-content:space-between;align-items:center;padding:4px 12px;border-radius:24px;background:transparent;white-space:nowrap;border:unset;outline:none;font-family:AmazonEmber-Regular,Amazon Ember;font-weight:500!important;}/*!sc*/ .bpFhJU:hover{color:#FFFFFF;text-decoration:underline;}/*!sc*/ .bpFhJU:hover svg[data-hover-type='fill'] path{fill:#FFFFFF;}/*!sc*/ .bpFhJU:hover svg[data-hover-type='stroke'] path{stroke:#FFFFFF;}/*!sc*/ data-d.g36[id="sc-dOUtaJ"]{content:"bpFhJU,"}/*!sc*/ .fAYAxu{width:100%;padding:8px 4px;background:#121D28;}/*!sc*/ data-d.g37[id="sc-lkbiLU"]{content:"fAYAxu,"}/*!sc*/ .jGnpDl{display:flex;position:relative;background-color:#161D26;font-family:AmazonEmber-Regular,Amazon Ember;font-weight:400;padding:0px 15px;margin:auto;cursor:default;color:#FFFFFF;}/*!sc*/ .enEsLI{display:flex;position:relative;background-color:#161D26;font-family:AmazonEmber-Regular,Amazon Ember;font-weight:400;padding:15px 0px;margin:0px 17px;cursor:default;color:#FFFFFF;border-bottom:1px solid #2D333B;}/*!sc*/ data-d.g39[id="sc-ktvNQe"]{content:"jGnpDl,enEsLI,"}/*!sc*/ .csGYOj{border:1px solid #8A8E92;border-radius:50%;min-width:32px;height:32px;display:flex;align-items:center;justify-content:center;font-size:16px;cursor:default;background-color:transparent;color:#C5C6C9;}/*!sc*/ data-d.g40[id="sc-dslWvo"]{content:"csGYOj,"}/*!sc*/ .iLwbCr{position:relative;}/*!sc*/ data-d.g41[id="sc-eXfTSZ"]{content:"iLwbCr,"}/*!sc*/ .csokZc{display:flex;gap:15px;align-self:end;margin-left:auto;align-items:center;margin-bottom:auto;margin-top:-5px;box-sizing:border-box;}/*!sc*/ @media (max-width: 1023px){.csokZc{margin-top:0;}}/*!sc*/ @media (max-width: 767px){.csokZc{display:none;}}/*!sc*/ data-d.g43[id="sc-fCSSOr"]{content:"csokZc,"}/*!sc*/ .evhrts{position:relative;border:1px solid #8A8E92;border-radius:50%;background-color:transparent;width:32px;height:32px;display:flex;justify-content:center;align-items:center;}/*!sc*/ .evhrts:hover{background-color:#FFFFFF;border:1px solid #FFFFFF;}/*!sc*/ .evhrts:hover svg path{fill:#000000;}/*!sc*/ data-d.g44[id="sc-jcvEFQ"]{content:"evhrts,"}/*!sc*/ .kmnWJv{position:relative;display:flex;align-items:center;justify-content:center;cursor:pointer;}/*!sc*/ data-d.g45[id="sc-kHpCdB"]{content:"kmnWJv,"}/*!sc*/ .kskUza{background-color:inherit;display:flex;justify-content:space-between;align-items:center;padding:20px 0;width:86%;margin:auto;flex:1;border-bottom:1px solid #2D333B;}/*!sc*/ data-d.g48[id="sc-eOrxMY"]{content:"kskUza,"}/*!sc*/ .cqHafT{display:flex;justify-content:end;}/*!sc*/ data-d.g49[id="sc-gtlvkJ"]{content:"cqHafT,"}/*!sc*/ .jVFIiO{transform:rotate(90deg);transition:transform 0.2s ease;}/*!sc*/ data-d.g50[id="sc-beKSRx"]{content:"jVFIiO,"}/*!sc*/ .dbJCJr{font-size:16px!important;text-align:left;color:#B6B6B6;}/*!sc*/ data-d.g51[id="sc-fEOKFM"]{content:"dbJCJr,"}/*!sc*/ .bqMclt{width:100%;background:#161D26;}/*!sc*/ data-d.g63[id="sc-kHpflN"]{content:"bqMclt,"}/*!sc*/ .bUOdUe{transition:opacity 0.3s ease,visibility 0.3s ease,max-height 0.3s ease;opacity:1;visibility:visible;max-height:1000px;overflow:hidden;}/*!sc*/ data-d.g64[id="sc-bcWuly"]{content:"bUOdUe,"}/*!sc*/ .dNNzAo{position:relative;padding:20px 24px;display:flex;justify-content:space-between;align-items:center;cursor:pointer;}/*!sc*/ .dNNzAo::after{content:'';position:absolute;left:20px;right:20px;bottom:0;height:1px;background:#2D333B;}/*!sc*/ data-d.g65[id="sc-cHQrJj"]{content:"dNNzAo,"}/*!sc*/ .bDjxzk{font-family:AmazonEmber-Regular,Amazon Ember;font-weight:400;font-size:16px;color:#B6B6B6;cursor:pointer;}/*!sc*/ data-d.g66[id="sc-dxjgzI"]{content:"bDjxzk,"}/*!sc*/ .dBnAWs{display:flex;align-items:center;transform:rotate(90deg);opacity:1;transition:opacity 0.2s ease;}/*!sc*/ data-d.g67[id="sc-fcddXt"]{content:"dBnAWs,"}/*!sc*/ .jchmVe{width:100%;}/*!sc*/ data-d.g76[id="sc-WwxRR"]{content:"jchmVe,"}/*!sc*/ .dSIPWO{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;cursor:pointer;position:relative;}/*!sc*/ .dSIPWO::after{content:'';position:absolute;left:20px;right:20px;bottom:0;height:1px;background:#2D333B;}/*!sc*/ data-d.g77[id="sc-irDnDc"]{content:"dSIPWO,"}/*!sc*/ .blgCqm{background:#000000;transition:max-height 0.3s ease,opacity 0.3s ease,visibility 0.3s ease;opacity:0;visibility:hidden;max-height:0;overflow:hidden;}/*!sc*/ data-d.g78[id="sc-fQMTnL"]{content:"blgCqm,"}/*!sc*/ .eGCLF{font-family:AmazonEmber-Regular,Amazon Ember;font-weight:400;font-size:14px;color:#B6B6B6;padding:16px 24px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;}/*!sc*/ .eGCLF:hover{color:#FFFFFF;}/*!sc*/ data-d.g79[id="sc-bWxZAa"]{content:"eGCLF,"}/*!sc*/ .eodqxU{display:flex;align-items:center;transform:rotate(90deg);transition:transform 0.2s ease;}/*!sc*/ data-d.g82[id="sc-irzYNq"]{content:"eodqxU,"}/*!sc*/ .czgfzU{padding:20px 0;width:86%;margin:auto;border-bottom:1px solid #2D333B;border-top:1px solid #2D333B;}/*!sc*/ data-d.g84[id="sc-hRwOVo"]{content:"czgfzU,"}/*!sc*/ .hwtTrs{display:none;}/*!sc*/ @media (max-width: 767px){.hwtTrs{display:flex;}}/*!sc*/ data-d.g85[id="sc-jwqMsZ"]{content:"hwtTrs,"}/*!sc*/ .caPSep{flex-direction:column;display:none;}/*!sc*/ @media (max-width: 767px){.caPSep{display:flex;}}/*!sc*/ data-d.g86[id="sc-ixjNQG"]{content:"caPSep,"}/*!sc*/ .BNICR{position:fixed;top:0;left:0;min-width:304px;max-width:350px;background-color:#161D26;transform:translateX(-100%);transition:transform 0.3s ease-in-out;z-index:998;margin:70px 0 24px 0;display:flex;flex-direction:column;height:100vh;overflow-y:auto;}/*!sc*/ data-d.g87[id="sc-kcdLor"]{content:"BNICR,"}/*!sc*/ .eFalLc{display:none;background:none;border:none;cursor:pointer;position:relative;z-index:999;outline:none;-webkit-tap-highlight-color:transparent;}/*!sc*/ .eFalLc:focus{outline:none;}/*!sc*/ .eFalLc:active{outline:none;}/*!sc*/ @media (max-width: 1023px){.eFalLc{display:flex;justify-content:center;align-items:center;min-width:16px;padding:0;}}/*!sc*/ data-d.g88[id="sc-fZqnxA"]{content:"eFalLc,"}/*!sc*/ .tWAmr{display:flex;align-items:center;position:relative;background:#161D26;border-bottom:1px solid #2D333B;padding:18px 24px 0 24px;min-height:57px;z-index:20;}/*!sc*/ @media (max-width: 1023px){.tWAmr{padding:16px 24px 16px 20px;border-bottom:unset;}}/*!sc*/ data-d.g89[id="sc-hEkkVl"]{content:"tWAmr,"}/*!sc*/ .jHEIln{position:relative;z-index:999;}/*!sc*/ @media (max-width: 1023px){.jHEIln{margin-left:18px;}}/*!sc*/ data-d.g90[id="sc-fylWoh"]{content:"jHEIln,"}/*!sc*/ .iXgFPu{display:none;position:fixed;top:70px;left:0;width:100vw;height:100vh;background:rgba(0000.8);}/*!sc*/ data-d.g91[id="sc-jYpOcw"]{content:"iXgFPu,"}/*!sc*/ .eKNrEA{position:relative;z-index:999;display:flex;line-height:0;min-height:38px;background:#161D26;}/*!sc*/ @media (max-width: 1023px){.eKNrEA{align-items:center;width:100%;}}/*!sc*/ data-d.g92[id="sc-fQNqfz"]{content:"eKNrEA,"}/*!sc*/ .kpGGXu{padding:unset;margin-left:28px;margin-top:-18px;}/*!sc*/ @media (max-width: 1023px){.kpGGXu{display:none;}}/*!sc*/ data-d.g93[id="sc-kqRhTO"]{content:"kpGGXu,"}/*!sc*/ .ljYmuv{position:relative;z-index:20;}/*!sc*/ data-d.g94[id="sc-fDVLrx"]{content:"ljYmuv,"}/*!sc*/ *{box-sizing:border-box!important;}/*!sc*/ data-d.g95[id="sc-global-iOvFBz1"]{content:"sc-global-iOvFBz1,"}/*!sc*/

as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
Docs
Resources
Ecommerce Plug-ins
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。
<> .level1items a, .level2items a, .level3items a { display: block !important; }

Test your integration

[Step 7 of 8] Sandbox requests do not result in live transactions. Test your end-to-end workflow and downstream processes in Sandboxto make sure you’re handling both success and failure scenarios before going live. Note that to facilitate testingthe buyer experience in Sandbox does not always reflect the full buyer experience in Production. For examplein Sandbox you’ll have access to simulated payment methodswhich can be used to simulate different payment scenarios.

To get startedmake sure you have access to Amazon Pay Sandbox test buyer accounts. Then use simulated payment methods and simulation strings to test your integration.


1. Sandbox test buyer accounts

You must use Amazon Pay Sandbox accounts to complete transactions in the Sandbox environment. These accounts come pre-configured with simulated payment methods to help you mimic the buyer experience. You can also add shipping addressesif they’re needed to complete checkout.


2. Simulated payment methods

Amazon Pay Sandbox test buyer accounts come pre-configured with simulated payment methods that you can use to simulate different payment scenariossuch as payment declines and checkout abandonment. Use them to test your front-end integration. See Sandbox simulations to learn how to use simulated payment methods to test your integration.


3. Simulation strings

To simulate different responsespass simulation strings in your API request header. Use these strings to test your back-end integration. See Sandbox simulations.