SWP troubleshooting tip for signed requests

 

In troubleshooting efforts when SWP request messages are signed, we often find it is necessary to look for more details in the following elements --

 

  1. Exact URL where SWP request messages are being sent
  2. Exact SWP request message being sent to the URL referenced above
  3. Exact message string being encrypted using an HMACMD5(..) compatible algorithm
  4. Merchant ID
  5. External IP address of server submitting the SWP request message
  6. Exact SWP response message when difficulties are experienced

 


If  troubleshooting assistance is needed, please forward these elements (with sensitive values masked such as account numbers, passwords, etc..)  to integration@paymentsgateway.com along with a description of the issue for review.


 

 

[SWP-Redirect sandbox example]

1.  SWP-Redirect URL (example):

 

https://sandbox.paymentsgateway.net/SWP/Redirect/default.aspx

 

2.  SWP-Redirect Request message (example with sensitive data replaced):

 

"pg_api_login_id=r2A8X5V2fj&pg_return_url=https://swp.paymentsgateway.net/Redirect/results.aspx&pg_utc_time=634444438190000000&pg_transaction_order_number=237938&pg_continue_url=&pg_schedule_quantity=&pg_schedule_frequency=&pg_schedule_start_date=&pg_payment_method_id=&pg_payment_command=insert&pg_client_id=&pg_client_command=insert&pg_ts_hash=713234d8812be62ccf0747a8a55656f6&pg_transaction_type=10&pg_version_number=2.0&pg_valid_transaction_type=10,20&pg_valid_amount=1.00-5.00&pg_payment_card_type=VISA&pg_payment_card_name=ACHD TEST&pg_payment_card_number=4111111111111111&pg_billto_postal_name_first=ACHD&pg_billto_postal_name_last=TEST&pg_consumer_id=33333333333&pg_consumerorderid=123456789012345&pg_walletid=abc123&pg_merchant_data_1=1000&pg_merchant_data_2=9.95&pg_schedule_transaction=0&pg_payment_card_expdate_month=09&pg_payment_card_expdate_year=2020&pg_total_amount=2.75&pg_procurement_card=&pg_original_autorization_code=&pg_original_trace_number="

 

3.  SWP-Redirect message string to encrypt using HMACMD5(..) : 

 

"r2A8X5V2fj|10,20|2.0|1.00-5.00|634444442150000000|237938||insert||insert"

 

4.  Merchant ID (example):

 

123456

 

5.  External IP address of server submitting the SWP-Redirect request message (example):

 

10.100.11.101

 

 

6.  SWP-Redirect Response message (example):

 

pg_ts_hash_response=3f674aadc230ecdf9797b63fa2365771

pg_last4=1111

pg_response_type=A

pg_response_code=A01

pg_response_description=TEST APPROVAL

pg_trace_number=57a5403f-972d-463d-a7f4-5355ef44d9ee

pg_authorization_code=123456

pg_payment_method_id=25983

pg_client_id=27397

pg_payment_card_exp=202009

pg_utc_time=634444440212894244

pg_return_url=https://swp.paymentsgateway.net/Redirect/results.aspx

pg_transaction_order_number=237938

pg_continue_url=

pg_schedule_quantity=

pg_schedule_frequency=

pg_schedule_start_date=

pg_payment_command=insert

pg_client_command=insert

pg_transaction_type=10

pg_version_number=2.0

pg_valid_transaction_type=10,20

pg_valid_amount=1.00-5.00

pg_payment_card_type=VISA

pg_payment_card_name=ACHD TEST

pg_billto_postal_name_first=ACHD

pg_billto_postal_name_last=TEST

pg_consumer_id=33333333333

pg_consumerorderid=123456789012345

pg_walletid=abc123

pg_merchant_data_1=1000

pg_merchant_data_2=9.95

pg_schedule_transaction=0

pg_payment_card_expdate_month=09

pg_payment_card_expdate_year=2020

pg_total_amount=2.75

pg_procurement_card=

pg_original_autorization_code=

pg_original_trace_number=

Follow Us

Stay up to date with the latest PG news via RSS, Twitter and Google +1

Copyright © 2012 Payments Gateway - All Rights Reserved Privacy | Legal