Support Services

How should I configure my Secure Web Pay permissions for 3DCart?

Merchants using the 3DCart integrated shopping cart with Secure Web Pay should configure SWP with the following permissions:

Permission/FieldValueVirtual Terminal Location
Accept Unsigned Transactions?YesVirtual Terminal > Gateway Settings  > Secure Web Pay > Main tab > select MERCHANT > Settings section
Return Pagehttps://yourdomain.3dcartstores.com/paymentreceive.asp?gw=paymentsgatewayswpVirtual Terminal > Gateway Settings  > Secure Web Pay> Main tab > select MERCHANT > Settings section click +/- to expand or collapse return page collection (any empty return page may be used)
Consumer Order IDComplete the following fields:
  • Name: Consumer Order ID
  • Requirement: Optional or Required
  • FieldType: Text
  • Description <any>

NOTE: Click the Update button to save your changes before navigating to a different tab category.
Virtual Terminal > Gateway Settings  > Secure Web Pay > Field Settings tab > select MERCHANT> Merchant Defined Fields section > check the Show Legacy Settings option

What are some troubleshooting tips for signed SWP requests?

When troubleshooting signed SWP request messages, forward the following elements (with sensitive values like account numbers and passwords masked) to your Integration Specialist along with a description of the issue for review:

 ElementExample
Exact URL where you're sending the SWP request messageSWP-Redirect URL: https://sandbox.paymentsgateway.net/SWP/Redirect/default.aspx
Exact SWP request message you're sending to the URL referenced aboveSWP-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=71
3234d8812be62ccf0747a8a55656f6&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="
Exact message string you're encrypting using an HMACMD5-compatible algorithmSWP-Redirect message string to encrypt using HMACMD5(..) : "r2A8X5V2fj|10,20|2.0|1.00-5.00|634444442150000000|237938||insert||insert"
Merchant ID    Merchant ID (example): 123456
External IP address of server submitting the SWP request message    External IP address of server submitting the SWP-Redirect request message (example): 10.100.11.101
Exact SWP response message when your experienced the difficultiesSWP-Redirect Response message (example):
pg_ts_hash_response=3f674aadc230ecdf9797b63fa2365771
pg_last4=1111
pg_response_type=A
pg_response_code=A01pg_response_description=TEST APPROVAL
pg_trace_number=57a5403f-972d-463d-a7f4-5355ef44d9ee
pg_authorization_code=123456pg_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=ACHDpg_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=

How can I change the Pay Now button to a link in SWP Checkout?

Secure Web Pay Checkout request parameters may be passed in the browser as part of the URL string:

Live 

https://swp.paymentsgateway.net/co/default.aspx?request_parameter_1=value&request_parameter_2=value&......&request_parameter_xx=value

Sandbox

https://sandbox.paymentsgateway.net/swp/co/default.aspx?request_parameter_1=value&request_parameter_2=value&......&request_parameter_xx=value

Most Popular Usage Examples

Live

https://swp.paymentsgateway.net/co/default.aspx?pg_api_login_id=abcdefgh

Sandbox

https://sandbox.paymentsgateway.net/swp/co/default.aspx?pg_api_login_id=ijklmnop


What are SWP Checkout's Retry Policies?

When asynchronous postback failures occur within SWP Checkout 2.0, the system attempts to resend the response if the POST action did not result in an HTTP 200 response (i.e., OK). The number of retry attempts depends on the actual error (e.g., transaction error vs. an endpoint connection failure). 

For each failed postback attempt, the system adds one minute to the retry time. For transaction errors, the system will attempt to retry up to twenty times. For endpoint connection failures, the system will attempt to retry up to ten times.

How do I make the reCaptcha image display using Safari when I access SWP Checkout in an embedded iframe?

If you see a white panel after selecting the "I'm not a robot" reCaptcha checkbox, you'll need to update your browser to Safari 12.1.2 or higher. Safari version 12.1.1 has issues properly displaying the reCaptcha verification when you access SWP Checkout in a nested iframe greater than 512px. If you continue to experience problems after updating your browser version, consider the following additional solutions:

  1. Search Google for the "512px Safari iFrame reCaptcha Workaround." The reCaptcha verification may work inside an iframe that is 512px or less. 
  2. Inject the following header inside the iframe:
     <style type="text/css">.rc-image-tile-wrapper{transition: auto !important}</style>

What are some SWP-Checkout flows?

This solution details SWP-Checkout customer experiences when the following SWP-Checkout request parameters are used:


  • pg_return_url -------------> we will refer to this as the receiving endpoint for the postback
  • pg_return_method
  • pg_continue_url
  • pg_cancel_url


Case I. ( if pg_return_method="Post" ):

Upon approval, the postback will be sent and the customer will be redirected to the receiving endpoint. Upon decline, no postback will be sent. The customer will be redirected to the endpoint specified in the 'pg_cancel_url' request parameter upon click of the 'Abort' button (shown on the Transaction Decline dialog).


Case II, ( if pg_return_method='AsyncPost' ):

Upon approval or decline, the customer will either be first displayed the receipt (upon an approval) or be displayed the Transaction Decline dialog (upon decline). Next, the postback will be sent asynchronously. Lastly, the customer be redirected to the respective endpoints specified in 'pg_continue_url' or 'pg_cancel_url' request parameters upon click of continue (shown on the receipt) or abort (shown on the Transaction Decline dialog) buttons, as appropriate.


More information on the 'pg_return_url', 'pg_return_method', 'pg_continue_url', and 'pg_cancel_url' is available in the SWP-Checkout developer documentation available here: https://www.forte.net/devdocs/pdf/SWP_Integration.pdf. We strongly encourage testing this in the sandbox test environment.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.