PayPal Certified Developer Program - 2008 Guia de Configuração Página 132

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 162
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 131
Sandbox Testing
Testing Error Conditions
9
132 March 2008 PayPal Certified Developer Program Study Guide
N OTE: If the trigger value is not a valid error code for the API being tested, positive testing
occurs for the request, which might result in another error occurring.
Negative Testing Using an Amount-Related Trigger Field
The following example sets up testing for error 10623 for DoAuthorization, in which the
error code is specified in the AMT field:
METHOD=DoAuthorization
&TRANSACTIONID=O-1GU0288989807143B&
AMT=106.23&
TRANSACTIONENTITY=Order&
VERSION=3.3&
USER=username&
PWD=password&
SIGNATURE=signature
The request invokes the following response:
TIMESTAMP=2007%2d04%2d04T03%3a10%3a19Z&
CORRELATIONID=447d121150529&
ACK=Failure&
L_ERRORCODE0=10623&
L_SHORTMESSAGE0=Maximum%20number%20of%20authorization%20allowed%20for%20the
%20order%20is%20reached%2e&
L_LONGMESSAGE0=Maximum%20number%20of%20authorization%20allowed%20for%20the%
20order%20is%20reached%2e&
L_SEVERITYCODE0=Error&
VERSION=3%3e400000&
BUILD=1%2e0006
BAUpdate
Version 2.4
MPID MpID Specify the error code to trigger as all
digits in the field; e.g., an ID of 10755
triggers PayPal API error code 10755.
BAUpdate
Version 3.0
REFERENCEID ReferenceID Specify the error code to trigger as all
digits in the field; e.g., an ID of 10755
triggers PayPal API error code 10755.
AddressVerify Not supported for negative testing.
T
ABLE 9.2 API Fields That Trigger Error Conditions (Continued)
API Name NVP Field Name SOAP Element Description
Vista de página 131
1 2 ... 127 128 129 130 131 132 133 134 135 136 137 ... 161 162

Comentários a estes Manuais

Sem comentários