1 8 package lp.samples; 9 10 18 19 public class XMLSampleData { 20 21 public static String AVS_CVM = "<!-- An Example Credit Card SALE With Minimum Fields required for AVS and Card Code fraud prevention measures-->" + 22 "<order>" + 23 "<merchantinfo>" + 24 "<!-- Replace with your STORE NUMBER or STORENAME-->" + 25 "<configfile>1234567</configfile>" + 26 "</merchantinfo>" + 27 "<orderoptions>" + 28 "<ordertype>SALE</ordertype>" + 29 "</orderoptions>" + 30 "<payment>" + 31 "<chargetotal>12.99</chargetotal>" + 32 "</payment>" + 33 "<creditcard>" + 34 "<cardnumber>4111-1111-1111-1111</cardnumber>" + 35 "<cardexpmonth>03</cardexpmonth>" + 36 "<cardexpyear>05</cardexpyear>" + 37 "<!-- CVM is the three-digit security code usually found on the signature line on the back of the card -->" + 38 "<cvmvalue>123</cvmvalue>" + 39 "<cvmindicator>provided</cvmindicator>" + 40 "</creditcard>" + 41 "<billing>" + 42 "<!-- Required for Address Verification -->" + 43 "<addrnum>123</addrnum>" + 44 "<zip>87123</zip>" + 45 "</billing>" + 46 "</order>"; 47 public static String FORCED_TICKET = "<!-- Minimum Required Fields for a FORCED TICKET Transaction -->" + 51 "<order>" + 52 "<merchantinfo>" + 53 "<!-- Replace with your STORE NUMBER or STORENAME-->" + 54 "<configfile>1234567</configfile>" + 55 "</merchantinfo>" + 56 "<orderoptions>" + 57 "<ordertype>POSTAUTH</ordertype>" + 58 "</orderoptions>" + 59 "<payment>" + 60 "<chargetotal>12.99</chargetotal>" + 61 "</payment>" + 62 "<creditcard>" + 63 "<cardnumber>4111-1111-1111-1111</cardnumber>" + 64 "<cardexpmonth>03</cardexpmonth>" + 65 "<cardexpyear>05</cardexpyear>" + 66 "</creditcard>" + 67 "<transactiondetails>" + 68 "<!-- The reference number given over the phone --> " + 69 "<reference_number>NEW987654</reference_number> " + 70 "</transactiondetails>" + 71 "</order>"; 72 76 public static String ITEMS_W_ESD ="<!-- Required Fields for an Example Credit Card SALE with ITEMS-->" + 77 "<order> " + 78 "<merchantinfo> " + 79 "<!-- Replace with your STORE NUMBER or STORENAME--> " + 80 "<configfile>1234567</configfile> " + 81 "</merchantinfo> " + 82 "<orderoptions> " + 83 "<ordertype>SALE</ordertype> " + 84 "</orderoptions> " + 85 "<payment> " + 86 "<subtotal>45.98</subtotal> " + 87 "<tax>0.32</tax> " + 88 "<shipping>1.02</shipping> " + 89 "<chargetotal>47.32</chargetotal> " + 90 "</payment> " + 91 "<creditcard> " + 92 "<cardnumber>4111-1111-1111-1111</cardnumber> " + 93 "<cardexpmonth>03</cardexpmonth> " + 94 "<cardexpyear>05</cardexpyear> " + 95 "</creditcard> " + 96 "<billing> " + 97 "<!-- Required for AVS. If not provided, transactions will downgrade.--> " + 98 "<addrnum>123</addrnum> " + 99 "<zip>12345</zip> " + 100 "<!-- If you use ESD items - name is required --> " + 101 "<name>Joe Customer</name> " + 102 "</billing> " + 103 "<items> " + 104 "<item> " + 105 "<id>123456-A98765</id> " + 106 "<description>Logo T-Shirt</description> " + 107 "<price>12.99</price> " + 108 "<quantity>1</quantity> " + 109 "<serial>0987654321</serial> " + 110 "<options> " + 111 "<option> " + 112 "<name>Color</name> " + 113 "<value>Red</value> " + 114 "</option> " + 115 "<option> " + 116 "<name>Size</name> " + 117 "<value>XL</value> " + 118 "</option> " + 119 "</options> " + 120 "</item> " + 121 "<item> " + 122 "<id>123456-A98765</id> " + 123 "<description>Blast-Em Software</description> " + 124 "<price>32.99</price> " + 125 "<quantity>1</quantity> " + 126 "<serial>0987654321</serial> " + 127 "<esdtype>softgood</esdtype> " + 128 "<softfile>blastemgame.exe</softfile> " + 129 "</item> " + 130 "</items> " + 131 "</order>"; 132 133 public static String L2PURCHASING_CARD = "<!-- An Example Level 2 Purchasing Card SALE -->" + 137 "<order> " + 138 "<merchantinfo> " + 139 "<!-- Replace with your STORE NUMBER or STORENAME--> " + 140 "<configfile>1234567</configfile> " + 141 "</merchantinfo> " + 142 "<orderoptions> " + 143 "<ordertype>SALE</ordertype> " + 144 "</orderoptions> " + 145 "<payment> " + 146 "<!-- Tax is required for purchasing cards. If the tax is $0.00, pass a value of 0 for tax --> " + 147 "<tax>0.32</tax> " + 148 "<chargetotal>47.32</chargetotal> " + 149 "</payment> " + 150 "<creditcard> " + 151 "<cardnumber>4111-1111-1111-1111</cardnumber> " + 152 "<cardexpmonth>03</cardexpmonth> " + 153 "<cardexpyear>05</cardexpyear> " + 154 "</creditcard> " + 155 "<transactiondetails> " + 156 "<!-- If there is no PO Number for this order, pass a department code or other value, but make sure the value you pass is supplied by the customer --> " + 157 "<ponumber>1203A-G4567</ponumber> " + 158 "<!-- If the purchase is tax exempt, pass a value of Y for taxexempt--> " + 159 "<taxexempt>N</taxexempt> " + 160 "</transactiondetails> " + 161 "</order>"; 162 163 public static String RETURN = "<!-- Minimum Required Fields for a Credit Card CREDIT -->" + 167 "<order> " + 168 "<merchantinfo> " + 169 "<!-- Replace with your STORE NUMBER or STORENAME--> " + 170 "<configfile>1234567</configfile> " + 171 "</merchantinfo> " + 172 "<orderoptions> " + 173 "<ordertype>CREDIT</ordertype> " + 174 "</orderoptions> " + 175 "<payment> " + 176 "<!-- Amount returned must be less than or equal to the order amount. If there is more than one return against this order, make sure the total of the returns doesn't exceed the original sale amount. --> " + 177 "<chargetotal>12.99</chargetotal> " + 178 "</payment> " + 179 "<creditcard> " + 180 "<cardnumber>4111-1111-1111-1111</cardnumber> " + 181 "<cardexpmonth>03</cardexpmonth> " + 182 "<cardexpyear>05</cardexpyear> " + 183 "</creditcard> " + 184 "<transactiondetails> " + 185 "<!-- Must be a valid order ID from a prior Sale or PostAuth --> " + 186 "<!-- <oid>12345678-A345</oid> --> " + 187 "</transactiondetails> " + 188 "</order>"; 189 190 public static String SALE_MAXINFO = "<!-- An Example Credit Card SALE with all commonly used fields included -->" + 194 "<order> " + 195 "<merchantinfo> " + 196 "<!-- Replace with your STORE NUMBER or STORENAME--> " + 197 "<configfile>1234567</configfile> " + 198 "</merchantinfo> " + 199 "<orderoptions> " + 200 "<ordertype>SALE</ordertype> " + 201 "<!-- For test transactions, set to GOOD, DECLINE, or DUPLICATE --> " + 202 "<result>LIVE</result> " + 203 "</orderoptions> " + 204 "<transactiondetails> " + 205 "<!-- For credit card retail txns, set to RETAIL, for Mail order/telephone order, set to MOTO, for e-commerce, leave out or set to ECI --> " + 206 "<transactionorigin>MOTO</transactionorigin> " + 207 "<!-- Order ID number must be unique. If not set, gateway will assign one. --> " + 208 "<!-- <oid>12345678-A345</oid> --> " + 209 "<ponumber>09876543-Q1234</ponumber> " + 210 "<taxexempt>N</taxexempt> " + 211 "<terminaltype>UNSPECIFIED</terminaltype> " + 212 "<ip>123.123.123.123</ip> " + 213 "</transactiondetails> " + 214 "<items> " + 215 "<item> " + 216 "<id>123456-A98765</id> " + 217 "<description>Logo T-Shirt</description> " + 218 "<price>12.99</price> " + 219 "<quantity>1</quantity> " + 220 "<serial>0987654321</serial> " + 221 "<options> " + 222 "<option> " + 223 "<name>Color</name> " + 224 "<value>Red</value> " + 225 "</option> " + 226 "<option> " + 227 "<name>Size</name> " + 228 "<value>XL</value> " + 229 "</option> " + 230 "</options> " + 231 "</item> " + 232 "</items> " + 233 "<payment> " + 234 "<subtotal>12.99</subtotal> " + 235 "<!-- Replace value with calculated tax --> " + 236 "<tax>0.34</tax> " + 237 "<!-- Replace value with calculated shipping charges --> " + 238 "<shipping>1.45</shipping> " + 239 "<vattax>0.00</vattax> " + 240 "<chargetotal>14.78</chargetotal> " + 241 "</payment> " + 242 "<creditcard> " + 243 "<cardnumber>4111-1111-1111-1111</cardnumber> " + 244 "<cardexpmonth>03</cardexpmonth> " + 245 "<cardexpyear>05</cardexpyear> " + 246 "<!-- CVM is the three-digit security code usually found on the signature line on the back of the card --> " + 247 "<cvmvalue>123</cvmvalue> " + 248 "<cvmindicator>provided</cvmindicator> " + 249 "</creditcard>" + 250 "<billing> " + 251 "<!-- Required for Address Verification --> " + 252 "<addrnum>123</addrnum> " + 253 "<zip>87123</zip> " + 254 "<!-- Billing name and address et al. --> " + 255 "<name>Joe Customer</name> " + 256 "<company>SomeWhere, Inc.</company> " + 257 "<address1>123 Broadway</address1> " + 258 "<address2>Suite 23</address2> " + 259 "<city>Moorpark</city> " + 260 "<state>CA</state> " + 261 "<country>US</country> " + 262 "<phone>8051234567</phone> " + 263 "<fax>8059876543</fax> " + 264 "<email>joe.customer@somewhere.com</email> " + 265 "</billing> " + 266 "<shipping> " + 267 "<!-- Shipping name and address --> " + 268 "<name>Joe Customer</name> " + 269 "<!--<company>SomeWhere, Inc.</company> -->" + 270 "<address1>123 Broadway</address1> " + 271 "<address2>Suite 23</address2> " + 272 "<city>Moorpark</city> " + 273 "<state>CA</state> " + 274 "<zip>12345</zip> " + 275 "<country>US</country> " + 276 "</shipping> " + 277 "<notes> " + 278 "<comments>Repeat customer. Ship immediately.</comments> " + 279 "<referred>Saw ad on Web site.</referred> " + 280 "</notes> " + 281 "</order>"; 282 283 public static String SALE_MININFO = "<!-- Minimum Required Fields for a Credit Card SALE-->" + 287 "<order> " + 288 "<merchantinfo> " + 289 "<!-- Replace with your STORE NUMBER or STORENAME--> " + 290 "<configfile>1234567</configfile> " + 291 "</merchantinfo> " + 292 "<orderoptions> " + 293 "<ordertype>SALE</ordertype> " + 294 "<!-- For a test, set result to GOOD, DECLINE, or DUPLICATE --> " + 295 "<result>LIVE</result> " + 296 "</orderoptions> " + 297 "<payment> " + 298 "<chargetotal>12.99</chargetotal> " + 299 "</payment> " + 300 "<creditcard> " + 301 "<cardnumber>4111-1111-1111-1111</cardnumber> " + 302 "<cardexpmonth>03</cardexpmonth> " + 303 "<cardexpyear>05</cardexpyear> " + 304 "</creditcard> " + 305 "<billing> " + 306 "<!-- Required for AVS. If not provided, transactions will downgrade.--> " + 307 "<addrnum>123</addrnum> " + 308 "<zip>12345</zip> " + 309 "</billing> " + 310 "</order>"; 311 312 public static String SHIPPING = "<!-- An Example shipping calculation -->" + 316 "<order> " + 317 "<merchantinfo> " + 318 "<!-- Replace with your STORE NUMBER or STORENAME--> " + 319 "<configfile>1234567</configfile> " + 320 "</merchantinfo> " + 321 "<orderoptions> " + 322 "<ordertype>CALCSHIPPING</ordertype> " + 323 "</orderoptions> " + 324 "<shipping> " + 325 "<!-- Include the fields needed for your shipping calculation method --> " + 326 "<carrier>2</carrier> " + 327 "<weight>1.2</weight> " + 328 "<items>1</items> " + 329 "<total>12.99</total> " + 330 "<state>CA</state> " + 331 "</shipping> " + 332 "</order>"; 333 334 public static String TAX ="<!-- An Example tax calculation --> " + 338 "<order> " + 339 "<merchantinfo> " + 340 "<!-- Replace with your STORE NUMBER or STORENAME--> " + 341 "<configfile>1234567</configfile> " + 342 "</merchantinfo> " + 343 "<orderoptions> " + 344 "<ordertype>CALCTAX</ordertype> " + 345 "</orderoptions> " + 346 "<shipping> " + 347 "<!-- Include the fields needed for tax calculation --> " + 348 "<total>12.99</total> " + 349 "<state>CA</state> " + 350 "<zip>12345</zip> " + 351 "</shipping> " + 352 "<payment> " + 353 "<subtotal>12.99</subtotal> " + 354 "</payment> " + 355 "</order>"; 356 357 public static String VCHECK_SALE = "<!-- Minimum Required Fields for a VirtualCheck SALE-->" + 361 "<order> " + 362 "<merchantinfo> " + 363 "<!-- Replace with your STORE NUMBER or STORENAME--> " + 364 "<configfile>1234567</configfile> " + 365 "</merchantinfo> " + 366 "<orderoptions> " + 367 "<ordertype>SALE</ordertype> " + 368 "</orderoptions> " + 369 "<payment> " + 370 "<chargetotal>12.99</chargetotal> " + 371 "</payment> " + 372 "<telecheck> " + 373 "<!-- Customer's Driver's license # and DL state.--> " + 374 "<dl>120381698</dl> " + 375 "<dlstate>CA</dlstate> " + 376 "<!-- Bank's name and state.--> " + 377 "<bankname>Wells Fargo</bankname> " + 378 "<bankstate>CA</bankstate> " + 379 "<!-- Transit routing number for the customer's bank --> " + 380 "<routing>12345678</routing> " + 381 "<!-- Customer's bank account number --> " + 382 "<account>2139842610</account> " + 383 "<!-- Is this a business or consumer (personal) purchase? personal = pc, business = bc --> " + 384 "<accounttype>pc</accounttype> " + 385 "</telecheck> " + 386 "<billing> " + 387 "<name>Joe Customer</name> " + 388 "<address1>123 Broadway</address1> " + 389 "<city>Moorpark</city> " + 390 "<state>CA</state> " + 391 "<zip>12345</zip> " + 392 "<phone>8051234567</phone> " + 393 "<email>joe.customer@somewhere.com</email> " + 394 "</billing> " + 395 "</order>"; 396 397 public static String VCHECK_VOID ="<!-- Minimum Required Fields for a VirtualCheck VOID -->" + 401 "<order> " + 402 "<merchantinfo> " + 403 "<!-- Replace with your STORE NUMBER or STORENAME--> " + 404 "<configfile>1234567</configfile> " + 405 "</merchantinfo> " + 406 "<orderoptions> " + 407 "<ordertype>VOID</ordertype> " + 408 "</orderoptions> " + 409 "<payment> " + 410 "<chargetotal>12.99</chargetotal> " + 411 "</payment> " + 412 "<telecheck> " + 413 "<void>1</void> " + 414 "</telecheck> " + 415 "<transactiondetails> " + 416 "<!-- Must be a valid order ID from a prior Sale --> " + 417 "<oid>12345678-A345</oid> " + 418 "</transactiondetails> " + 419 "</order>"; 420 421 422 public static String VOID ="<!-- Minimum Required Fields for a Credit Card VOID --> " + 426 "<order> " + 427 "<merchantinfo> " + 428 "<!-- Replace with your STORE NUMBER or STORENAME--> " + 429 "<configfile>1234567</configfile> " + 430 "</merchantinfo> " + 431 "<orderoptions> " + 432 "<ordertype>VOID</ordertype> " + 433 "</orderoptions> " + 434 "<payment> " + 435 "<chargetotal>12.99</chargetotal> " + 436 "</payment> " + 437 "<creditcard> " + 438 "<cardnumber>4111-1111-1111-1111</cardnumber> " + 439 "<cardexpmonth>03</cardexpmonth> " + 440 "<cardexpyear>05</cardexpyear> " + 441 "</creditcard> " + 442 "<transactiondetails> " + 443 "<!-- Must be a valid order ID from a prior Sale or PostAuth --> " + 444 "<oid>12345678-A345</oid> " + 445 "</transactiondetails> " + 446 "</order>"; 447 448 public static String PREAUTH ="<!-- Minimum Required Fields for a PreAuth -->" + 452 "<order> " + 453 "<merchantinfo> " + 454 "<!-- Replace with your STORE NUMBER or STORENAME--> " + 455 "<configfile>1234567</configfile> " + 456 "</merchantinfo> " + 457 "<orderoptions> " + 458 "<ordertype>PREAUTH</ordertype> " + 459 "<!-- For a test, set result to GOOD, DECLINE, or DUPLICATE --> " + 460 "<result>GOOD</result> " + 461 "</orderoptions> " + 462 "<payment> " + 463 "<chargetotal>12.99</chargetotal> " + 464 "</payment> " + 465 "<creditcard> " + 466 "<cardnumber>4111-1111-1111-1111</cardnumber> " + 467 "<cardexpmonth>03</cardexpmonth> " + 468 "<cardexpyear>05</cardexpyear> " + 469 "</creditcard> " + 470 "<billing> " + 471 "<!-- Required for AVS. If not provided, transactions will downgrade.--> " + 472 "<addrnum>123</addrnum> " + 473 "<zip>12345</zip> " + 474 "</billing> " + 475 "</order>"; 476 477 public static String POSTAUTH="<!-- Minimum Required Fields for a PostAuth -->" + 481 "<order> " + 482 "<merchantinfo> " + 483 "<!-- Replace with your STORE NUMBER or STORENAME--> " + 484 "<configfile>1234567</configfile> " + 485 "</merchantinfo> " + 486 "<orderoptions> " + 487 "<ordertype>POSTAUTH</ordertype> " + 488 "<!-- For a test, set result to GOOD, DECLINE, or DUPLICATE --> " + 489 "<result>GOOD</result> " + 490 "</orderoptions> " + 491 "<payment> " + 492 "<chargetotal>12.99</chargetotal> " + 493 "</payment> " + 494 "<creditcard> " + 495 "<cardnumber>4111-1111-1111-1111</cardnumber> " + 496 "<cardexpmonth>03</cardexpmonth> " + 497 "<cardexpyear>05</cardexpyear> " + 498 "</creditcard> " + 499 "<transactiondetails> " + 500 "<!-- Must be a valid order ID from a prior PreAuth --> " + 501 "<oid>12345678-A345</oid> " + 502 "</transactiondetails> " + 503 "</order>"; 504 505 506 public static String PB_NEW = "<!-- Minimum Required Fields for a Recurring Credit Card Sale (Periodic Bill)-->" + 510 "<order> " + 511 "<merchantinfo> " + 512 "<!-- Replace with your STORE NUMBER or STORENAME--> " + 513 "<configfile>1234567</configfile> " + 514 "</merchantinfo> " + 515 "<orderoptions> " + 516 "<ordertype>SALE</ordertype> " + 517 "</orderoptions> " + 518 "<payment> " + 519 "<chargetotal>12.99</chargetotal> " + 520 "</payment> " + 521 "<creditcard> " + 522 "<cardnumber>4111-1111-1111-1111</cardnumber> " + 523 "<cardexpmonth>03</cardexpmonth> " + 524 "<cardexpyear>05</cardexpyear> " + 525 "</creditcard> " + 526 "<periodic> " + 527 "<!-- Submits a recurring transaction charging the card 3 times, once a month, starting today --> " + 528 "<action>SUBMIT</action> " + 529 "<installments>3</installments> " + 530 "<threshold>3</threshold> " + 531 "<!-- If you don't want it to start today, pass a date in the format YYYYMMDD --> " + 532 "<startdate>immediate</startdate> " + 533 "<periodicity>monthly</periodicity> " + 534 "</periodic> " + 535 "<billing> " + 536 "<!-- Required for AVS. If not provided, transactions will downgrade.--> " + 537 "<addrnum>123</addrnum> " + 538 "<zip>12345</zip> " + 539 "</billing> " + 540 "</order>"; 541 542 public static String PB_MODIFY = "<!-- Required Fields to MODIFY a Recurring Credit Card Sale (Periodic Bill)-->" + 546 "<order> " + 547 "<merchantinfo> " + 548 "<!-- Replace with your STORE NUMBER or STORENAME--> " + 549 "<configfile>1234567</configfile> " + 550 "</merchantinfo> " + 551 "<orderoptions> " + 552 "<ordertype>SALE</ordertype> " + 553 "</orderoptions> " + 554 "<payment> " + 555 "<chargetotal>12.99</chargetotal> " + 556 "</payment> " + 557 "<creditcard> " + 558 "<cardnumber>4111-1111-1111-1111</cardnumber> " + 559 "<cardexpmonth>03</cardexpmonth> " + 560 "<cardexpyear>05</cardexpyear> " + 561 "</creditcard> " + 562 "<periodic> " + 563 "<action>MODIFY</action> " + 564 "<startdate>immediate</startdate> " + 565 "<installments>3</installments> " + 566 "<threshold>3</threshold> " + 567 "<periodicity>monthly</periodicity> " + 568 "</periodic> " + 569 "<transactiondetails> " + 570 "<!-- You MUST pass a valid Order ID for an EXISTING periodic bill to identify which bill you want to modify --> " + 571 "<oid>111.456.87.03-O986646-A123</oid> " + 572 "</transactiondetails> " + 573 "</order>"; 574 575 public static String PB_CANCEL="<!-- Required Fields to CANCEL a Recurring Credit Card Sale (Periodic Bill)-->" + 579 "<order> " + 580 "<merchantinfo> " + 581 "<!-- Replace with your STORE NUMBER or STORENAME--> " + 582 "<configfile>1234567</configfile> " + 583 "</merchantinfo> " + 584 "<orderoptions> " + 585 "<ordertype>SALE</ordertype> " + 586 "</orderoptions> " + 587 "<payment> " + 588 "<chargetotal>12.99</chargetotal> " + 589 "</payment> " + 590 "<periodic> " + 591 "<action>CANCEL</action> " + 592 "<startdate>immediate</startdate> " + 593 "<installments>3</installments> " + 594 "<threshold>3</threshold> " + 595 "<periodicity>monthly</periodicity> " + 596 "</periodic> " + 597 "<creditcard> " + 598 "<cardnumber>4111-1111-1111-1111</cardnumber> " + 599 "<cardexpmonth>03</cardexpmonth> " + 600 "<cardexpyear>05</cardexpyear> " + 601 "</creditcard> " + 602 "<transactiondetails> " + 603 "<!-- You MUST pass a valid Order ID for an EXISTING periodic bill to identify which bill you want to cancel --> " + 604 "<oid>111.456.87.03-O986646-A123</oid> " + 605 "</transactiondetails> " + 606 "</order>"; 607 608 public static String RETAIL_KEYED="<!-- Minimum Required Fields for a Credit Card SALE-->" + 612 "<order> " + 613 "<merchantinfo> " + 614 "<!-- Replace with your STORE NUMBER or STORENAME--> " + 615 "<configfile>1234567</configfile> " + 616 "</merchantinfo> " + 617 "<transactiondetails> " + 618 "<transactionorigin>RETAIL</transactionorigin> " + 619 "<!-- set terminaltype to POS for an electronic cash register or integrated POS system, STANDALONE for a point-of-sale credit card terminal, UNATTENDED for a self-service station, or UNSPECIFIED for e-commerce or other applications --> " + 620 "<terminaltype>POS</terminaltype> " + 621 "</transactiondetails> " + 622 "<orderoptions> " + 623 "<ordertype>SALE</ordertype> " + 624 "</orderoptions> " + 625 "<payment> " + 626 "<chargetotal>12.99</chargetotal> " + 627 "</payment> " + 628 "<creditcard> " + 629 "<cardnumber>4111-1111-1111-1111</cardnumber> " + 630 "<cardexpmonth>03</cardexpmonth> " + 631 "<cardexpyear>05</cardexpyear> " + 632 "</creditcard> " + 633 "<!-- <billing> " + 634 "You should not do AVS for a retail swiped transaction, unless it is an UNATTENDED terminaltype. " + 635 "billing addrnum and billing zip are not required because we're not doing AVS ... " + 636 "<addrnum>123</addrnum> " + 637 "<zip>12345</zip> " + 638 "</billing>--> " + 639 "</order>"; 640 641 public static String RETAIL_PARTIAL_AVS = "<!-- Minimum Required Fields for a Credit Card SALE-->" + 645 "<order> " + 646 "<merchantinfo> " + 647 "<!-- Replace with your STORE NUMBER or STORENAME--> " + 648 "<configfile>1234567</configfile> " + 649 "</merchantinfo> " + 650 "<transactiondetails> " + 651 "<transactionorigin>RETAIL</transactionorigin> " + 652 "<!-- set terminaltype to POS for an electronic cash register or integrated POS system, STANDALONE for a point-of-sale credit card terminal, UNATTENDED for a self-service station, or UNSPECIFIED for e-commerce or other applications --> " + 653 "<terminaltype>UNATTENDED</terminaltype> " + 654 "</transactiondetails> " + 655 "<orderoptions> " + 656 "<ordertype>SALE</ordertype> " + 657 "</orderoptions> " + 658 "<payment> " + 659 "<chargetotal>12.99</chargetotal> " + 660 "</payment> " + 661 "<creditcard> " + 662 "<cardnumber>4111-1111-1111-1111</cardnumber> " + 663 "<cardexpmonth>03</cardexpmonth> " + 664 "<cardexpyear>05</cardexpyear> " + 665 "</creditcard> " + 666 "<billing> " + 667 "<!-- For an UNATTENDED terminaltype, do a partial AVS: zip code only. " + 668 "<addrnum>123</addrnum> --> " + 669 "<zip>12345</zip> " + 670 "</billing> " + 671 "</order>"; 672 673 public static String RETAIL_SWIPE = "<!-- Minimum Required Fields for a Credit Card SALE-->" + 677 "<order> " + 678 "<merchantinfo> " + 679 "<!-- Replace with your STORE NUMBER or STORENAME--> " + 680 "<configfile>1234567</configfile> " + 681 "</merchantinfo> " + 682 "<transactiondetails> " + 683 "<transactionorigin>RETAIL</transactionorigin> " + 684 "<!-- set terminaltype to POS for an electronic cash register or integrated POS system, STANDALONE for a point-of-sale credit card terminal, UNATTENDED for a self-service station, or UNSPECIFIED for e-commerce or other applications --> " + 685 "<terminaltype>POS</terminaltype> " + 686 "</transactiondetails> " + 687 "<orderoptions> " + 688 "<ordertype>SALE</ordertype> " + 689 "</orderoptions> " + 690 "<payment> " + 691 "<chargetotal>12.99</chargetotal> " + 692 "</payment> " + 693 "<creditcard> " + 694 "<track>1298361023614908</track> " + 695 "</creditcard> " + 696 "<!-- <billing> " + 697 "You should not do AVS for a retail swiped transaction, unless it is an UNATTENDED terminaltype. " + 698 "billing addrnum and billing zip are not required because we're not doing AVS ... " + 699 "<addrnum>123</addrnum> " + 700 "<zip>12345</zip> " + 701 "</billing>--> " + 702 "</order>"; 703 704 705 } | Popular Tags |