Refund
Возврат/Реверсал (Refund);
Успешный запрос ( Возврат/Реверсал (Refund))
Запрос Test URL - https://ecg.test.upc.ua/go/service/02 PROD URL - https://secure.upc.ua/go/service/02 |
Ответ | Результат тестирования |
<?xml version="1.0" encoding="UTF-8"?> <ECommerceConnect xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://secure.upc.ua/go/pub/schema/xmlpay-1.2.xsd"> <Message id="1653689" version="1.0"> <XMLPayRequest> <RequestData> <MerchantID>1700000</MerchantID> <TerminalID>E7000000</TerminalID> <Transactions> <Transaction> <Refund> <RefundData> <Invoice> <OrderID>xmlPay504</OrderID> <Date>091112174516</Date> <TotalAmount>8000</TotalAmount> <Currency>980</Currency> <Description>Test xml</Description> </Invoice> <AuthorizationRef> <ApprovalCode>547042</ApprovalCode> <Rrn>111309003550</Rrn> </AuthorizationRef> <RefundAmount>7000</RefundAmount> </RefundData> </Refund> </Transaction> </Transactions> </RequestData> </XMLPayRequest> </Message> <Signature></Signature> </ECommerceConnect> |
<?xml version="1.0" encoding="UTF-8"?> <ECommerceConnect xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://secure.upc.ua/go/pub/schema/xmlpay-1.2.xsd"> <Message id="1653689" version="1.0"> <XMLPayResponse> <ResponseData> <MerchantID>1700000</MerchantID> <TerminalID>E7000000</TerminalID> <TransactionResults> <TransactionResult> <TranCode>000</TranCode> </TransactionResult> </TransactionResults> </ResponseData> </XMLPayResponse> </Message> <Signature></Signature> </ECommerceConnect> |
<TranCode>000</TranCode> |
Примечания:
Если присутствует <RefundAmount> то сумма возврата определяется по значению элемента. В противном случае, сумма возврата равняется сумме оригинальной транзакции. |
Не успешный запрос ( Возврат/Реверсал (Refund);)
Запрос Test URL - https://ecg.test.upc.ua/go/service/02 PROD URL - https://secure.upc.ua/go/service/02 |
Ответ |
Результат тестирования |
<?xml version="1.0" encoding="UTF-8"?> <ECommerceConnect xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://secure.upc.ua/go/pub/schema/xmlpay-1.2.xsd"> <Message id="1653689" version="1.0"> <XMLPayRequest> <RequestData> <MerchantID>1700000</MerchantID> <TerminalID>E7000000</TerminalID> <Transactions> <Transaction> <Refund> <RefundData> <Invoice> <OrderID>xmlPay504</OrderID> <Date>091112174516</Date> <TotalAmount>8000</TotalAmount> <Currency>980</Currency> <Description>Test xml</Description> </Invoice> <AuthorizationRef> <ApprovalCode>547042</ApprovalCode> <Rrn>111309003550</Rrn> </AuthorizationRef> <RefundAmount>7000</RefundAmount> </RefundData> </Refund> </Transaction> </Transactions> </RequestData> </XMLPayRequest> </Message> <Signature></Signature> </ECommerceConnect> |
<?xml version="1.0" encoding="UTF-8"?> <ECommerceConnect xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://secure.upc.ua/go/pub/schema/xmlpay-1.2.xsd"> <Message id="1653689" version="1.0"> <XMLPayResponse> <ResponseData> <MerchantID>1700000</MerchantID> <TerminalID>E7000000</TerminalID> <TransactionResults> <TransactionResult> <TranCode>512</TranCode> <Comment> Transaction already reversed </Comment> </TransactionResult> </TransactionResults> </ResponseData> </XMLPayResponse> </Message> <Signature></Signature> </ECommerceConnect> |
<TranCode>512</TranCode> |