1"use strict";(self.webpackChunk_amzn_startup_guide=self.webpackChunk_amzn_startup_guide||[]).push([[3832],{3905:(e,t,n)=>{n.d(t,{Zo:()=>l,kt:()=>h});var a=n(7294);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var u=a.createContext({}),c=function(e){var t=a.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},l=function(e){var t=c(e.components);return a.createElement(u.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},d=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,u=e.parentName,l=s(e,["components","mdxType","originalType","parentName"]),d=c(n),h=r,m=d["".concat(u,".").concat(h)]||d[h]||p[h]||o;return n?a.createElement(m,i(i({ref:t},l),{},{components:n})):a.createElement(m,i({ref:t},l))}));function h(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,i=new Array(o);i[0]=d;var s={};for(var u in t)hasOwnProperty.call(t,u)&&(s[u]=t[u]);s.originalType=e,s.mdxType="string"==typeof e?e:r,i[1]=s;for(var c=2;c<o;c++)i[c]=n[c];return a.createElement.apply(null,i)}return a.createElement.apply(null,n)}d.displayName="MDXCreateElement"},1032:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>i,default:()=>p,frontMatter:()=>o,metadata:()=>s,toc:()=>c});var a=n(7462),r=(n(7294),n(3905));const o={sidebar_position:4,slug:"/advanced_features/dynamic_async_authorization"},i="Dynamic Authorization and Asynchronous Authorization",s={unversionedId:"advanced_features/dynamic_async_authorization",id:"advanced_features/dynamic_async_authorization",title:"Dynamic Authorization and Asynchronous Authorization",description:"What is Dynamic Authorization?",source:"@site/i18n/en/docusaurus-plugin-content-docs/current/advanced_features/dynamic_async_authorization.md",sourceDirName:"advanced_features",slug:"/advanced_features/dynamic_async_authorization",permalink:"/en/advanced_features/dynamic_async_authorization",draft:!1,tags:[],version:"current",sidebarPosition:4,frontMatter:{sidebar_position:4,slug:"/advanced_features/dynamic_async_authorization"},sidebar:"tutorialSidebar",previous:{title:"Extend charge permission expiration",permalink:"/en/advanced_features/extend_expiration"},next:{title:"Set up IPN",permalink:"/en/advanced_features/ipn"}},u={},c=[{value:"What is Dynamic Authorization?",id:"what-is-dynamic-authorization",level:2},{value:"What is Asynchronous Authorization?",id:"what-is-asynchronous-authorization",level:2},{value:"How to set up?",id:"how-to-set-up",level:2}],l={toc:c};function p(e){let{components:t,...n}=e;return(0,r.kt)("wrapper",(0,a.Z)({},l,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("h1",{id:"dynamic-authorization-and-asynchronous-authorization"},"Dynamic Authorization and Asynchronous Authorization"),(0,r.kt)("h2",{id:"what-is-dynamic-authorization"},"What is Dynamic Authorization?"),(0,r.kt)("p",null,"In e-commerce, slow response times cause users to leave, so response time is important while accurate authorization/review requries certain amount of time. Therefore, depending on the payment method, transactions that could have been approved may be declined without enough time to review transaction thoroughly. That means an opportunity loss.",(0,r.kt)("br",null),'\nIn Amazon Pay, if such transaction is deemed requiring longer review time (not all transactions, but only those deemed required), it automatiaclly swtiches to "strict review mode" that reviews transaction for 24 hours at max, which is called "Dynamic Authorization" to prevent opportunity loss as much as possible.'),(0,r.kt)("h2",{id:"what-is-asynchronous-authorization"},"What is Asynchronous Authorization?"),(0,r.kt)("p",null,'Amazon Pay performs "strict review mode" with 24 hours for all transactions without exception.\nAsynchronous authorization state starts with "Authorization Initiated", and authorization result will be returned within 24 hours.'),(0,r.kt)("h2",{id:"how-to-set-up"},"How to set up?"),(0,r.kt)("p",null,"In either case, you will set ",(0,r.kt)("inlineCode",{parentName:"p"},"canHandlePendingAuthorization=true")," to the transaction.\nYou can set this parameter in UpdateCheckoutSession and CreateCharge API, and depending on API and it's chargePermissionType, Amazon Pay performs either Dynamic Authorization or Asynchronous Authorization."),(0,r.kt)("p",null,"Please refer to ",(0,r.kt)("a",{parentName:"p",href:"https://www.amazonpay-faq.jp/faq/QA-68"},"FAQ in Japanese - When do I beter set canHandlePendingAuthorization=true?")," for more detail."),(0,r.kt)("p",null,"Ref: ",(0,r.kt)("a",{parentName:"p",href:"https://developer.amazon.com/docs/amazon-pay-checkout/asynchronous-processing.html"},"Integration Guide - Manage asynchronous processing")))}p.isMDXComponent=!0}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.