We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e6cc5f commit a8d3496Copy full SHA for a8d3496
1 file changed
components/composite/StepPlaceOrder/index.tsx
@@ -46,6 +46,16 @@ const StepPlaceOrder: React.FC<Props> = ({
46
if (!appCtx) {
47
return null
48
}
49
+ let paypalPayerId = ""
50
+ let checkoutComSession = ""
51
+
52
+ if (query.PayerID) {
53
+ paypalPayerId = query.PayerID as string
54
+ }
55
56
+ if (query["cko-session-id"]) {
57
+ checkoutComSession = query["cko-session-id"] as string
58
59
60
const { placeOrder } = appCtx
61
@@ -133,7 +143,8 @@ const StepPlaceOrder: React.FC<Props> = ({
133
143
</ErrorsContainer>
134
144
<PlaceOrderContainer
135
145
options={{
136
- paypalPayerId: query?.PayerID as string,
146
+ paypalPayerId,
147
+ checkoutCom: { session_id: checkoutComSession },
137
148
}}
138
149
>
139
150
<>
0 commit comments