Skip to main content

5.3 Authorization and Capture (Sale)

The difference between requesting Authorization only and Authorization and Capture is that the latter also requests the capture of the authorized funds in a single Payment Service request.

Use the request action "CCAUTHCAP" for Authorization and Capture requests. The fields for CCAUTHCAP requests are the same as for CCAUTHORIZE requests described in Section 5.1.1: Authorization Parameters.

5.3.1 Authorization and Capture Request Example (CCAUTHCAP)

POST /payment/pmt_service.cfm HTTP/1.0

User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)

Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */*

Accept-Encoding: identity

Accept-Language: en-us,en

Host: API.PLGW.com

Accept-Charset: iso-8859-1,*,utf-8

Content-Type: application/x-www-form-urlencoded Content-Length: 531

req_username={{username}}&req_password={{password}}&request_action=CCAUTHCAP&site_id={site_id}&merch_acct_id={merch_acct_id}}&cust_fname=John&cust_lname=Doe&cust_email=user5@example.com&cust_login=username1&cust_password=12345678Xx&xtl_cust_id=c777777777&xtl_order_id=o111111111&li_prod_id_1={{prod_id_1}}&li_value_1=19.95&li_count_1=1&bill_addr=123%20Main%20Street%20Apt.%201&bill_addr_city=Los%20Angeles&bill_addr_state=CA&bill_addr_zip=90066&bill_addr_country=US&pmt_numb=5105105105105100&pmt_key=123&pmt_expiry=12/2025&request_response_format=XML&xtl_ip=10.00.000.90&request_api_version=4.4