PayPal Certified Developer Program - 2008 Guide d'installation Page 133

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 162
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 132
PayPal Certified Developer Program Study Guide March 2008 133
Sandbox Testing
Testing Error Conditions
9
Negative Testing Using a Non-Amount Trigger Field
The following example sets up testing for error 10603 for DoVoid, in which the error code is
specified in the AUTHORIZATIONID field:
METHOD=DoVoid&
AUTHORIZATIONID=10603&
VERSION=3.3&
USER=username&
PWD=password&
SIGNATURE=signature
The request invokes the following response:
TIMESTAMP=2007%2d04%2d04T03%3a10%3a22Z&
CORRELATIONID=51b0c5054dee6&
ACK=Failure&
L_ERRORCODE0=10603&
L_SHORTMESSAGE0=The%20buyer%20is%20restricted%2e&
L_LONGMESSAGE0=The%20buyer%20account%20is%20restricted%2e&
L_SEVERITYCODE0=Error
&VERSION=3%3e400000&
BUILD=1%2e0006
Negative Testing With Multiple Messages
The following example sets up testing for error 10009 for RefundTransaction, which
returns 14 possible error message sets:
METHOD=RefundTransaction&
TRANSACTIONID=asdf&
REFUNDTYPE=Partial&
AMT=100.09&
VERSION=3.3&
USER=username&
PWD=password&
SIGNATURE=signature
The request invokes the following response:
Vue de la page 132
1 2 ... 128 129 130 131 132 133 134 135 136 137 138 ... 161 162

Commentaires sur ces manuels

Pas de commentaire