PayPalDoAuthorizationReply → OrderCreateRequest
A OrderCreateRequest has elements under Payments, one of which can be a
PayPal element. Only a few elements map directly from
PaypalDoAuthorizationReply to OrderCreateRequest, but a successful reply from
authorization is required first before including a PayPal payment in the OrderCreateRequest.
Mapping
The PayPalDoAuthorizationReply field mappings start at :
/PayPalDoAuthorizationReply
The OrderCreateRequest field mappings start at:
/OrderCreateRequest/Payment/Payments/PayPal
| PayPalDoAuthorizationReply Field | OrderCreateRequest Field | Transform | Comment | 
|---|---|---|---|
| 
                                                                     //OrderId  | 
                                                                
                                                                     //PaymentContext/PaymentSessionId  | 
                                                                
                                                                     copy as is  | 
                                                                |
| 
                                                                     //PaymentContext/TenderType  | 
                                                                
                                                                     constant: PY  | 
                                                                ||
| 
                                                                     //PaymentContext/PaymentAccountUniqueId  | 
                                                                
                                                                     constant: PAYPAL  | 
                                                                ||
| 
                                                                     //PaymentContext/PaymentAccountUniqueId/@isToken  | 
                                                                
                                                                     constant: true  | 
                                                                ||
| 
                                                                     //ResponseCode  | 
                                                                
                                                                     //Authorization/ResponseCode  | 
                                                                
                                                                     if Success, constant: APPROVED  | 
                                                                
                                                                     If PayPal authorization did not return a ResponseCode of Success then order creation shouldn’t be attempted with that payment.  | 
                                                            
Mapping Example
                                                                    
                                                                             | 
                                                                
                                                                    
                                                                             |