".$message_to_hash."    Note: This form uses the SWP-Redirect standard hash format for signing"; $pg_ts_hash=calculate_HMACMD5_hash($message_to_hash, $key); $submit_button_label="Add transaction"; } else { $action_url="SWPRedirect.php"; $pg_api_login_id='xxxxxxxxxx'; $key='yyyyyyyyyy'; $pg_transaction_type='10'; $pg_version_number='2.0'; $pg_total_amount='20.00'; $pg_utc_time=get_UTC_Time(); $pg_transaction_order_number=rand(); $pg_client_id=''; $pg_client_command=''; $pg_payment_method_id=''; $pg_payment_command=''; $pg_billto_postal_name_first='John'; $pg_billto_postal_name_last='Smith'; $pg_billto_company_name=''; $pg_billto_postal_street_line1=''; $pg_billto_postal_street_line2=''; $pg_billto_postal_city=''; $pg_billto_postal_stateprov=''; $pg_billto_postal_postalcode=''; $pg_billto_postal_countrycode=''; $pg_billto_online_email=''; $pg_billto_telecom_phone_number=''; $pg_shipto_postal_name=''; $pg_shipto_postal_street_line1=''; $pg_shipto_postal_street_line2=''; $pg_shipto_postal_city=''; $pg_shipto_postal_stateprov=''; $pg_shipto_postal_postalcode=''; $pg_consumer_id=''; $pg_consumerorderid=$pg_transaction_order_number; $pg_walletid=''; $pg_merchant_data_1=''; $pg_merchant_data_2=''; $pg_merchant_data_3=''; $pg_merchant_data_4=''; $pg_merchant_data_5=''; $pg_merchant_data_6=''; $pg_merchant_data_7=''; $pg_merchant_data_8=''; $pg_merchant_data_9=''; $pg_line_item_header=''; $pg_line_item_1=''; $pg_line_item_2=''; $pg_line_item_3=''; $pg_line_item_4=''; $pg_line_item_5=''; $pg_line_item_6=''; $pg_line_item_7=''; $pg_line_item_8=''; $pg_line_item_9=''; $pg_line_item_10=''; $pg_user_defined_1=''; $pg_user_defined_2=''; $pg_user_defined_3=''; $pg_user_defined_4=''; $pg_user_defined_5=''; $pg_user_defined_6=''; $pg_user_defined_7=''; $pg_user_defined_8=''; $pg_user_defined_9=''; $pg_user_defined_10=''; $pg_sales_tax_amount=''; $pg_convenience_fee=''; $pg_avs_method='00000'; $pg_schedule_transaction='0'; $pg_schedule_quantity='0'; $pg_schedule_frequency='20'; $pg_schedule_start_date='12012088'; $pg_return_method='Post'; $pg_client_status=''; $pg_note=''; $pg_is_default=''; $pg_payment_check_trn=''; $pg_payment_check_account=''; $pg_payment_check_checkno=''; $pg_payment_check_account_type=''; $pg_payment_card_type='VISA'; $pg_payment_card_name='John Smith'; $pg_payment_card_number='4111111111111111'; $pg_payment_card_expdate_month='04'; $pg_payment_card_expdate_year='2099'; $pg_customer_acct_code=''; $pg_procurement_card='false'; $pg_payment_card_verification='123'; $pg_swipe_data=''; $pg_onetime_token=''; $pg_return_url='https://swp.paymentsgateway.net/Redirect/results.aspx'; $environment_url='https://sandbox.paymentsgateway.net/SWP/Redirect/default.aspx'; $message_to_hash=$pg_api_login_id.'|'.$pg_transaction_type.'|'.$pg_version_number.'|'.$pg_total_amount.'|'.$pg_utc_time.'|'.$pg_transaction_order_number.'|'.$pg_client_id.'|'.$pg_client_command.'|'.$pg_payment_method_id.'|'.$pg_payment_command; echo "Message To Hash: ".$message_to_hash."    Note: This form uses the SWP-Redirect standard hash format for signing"; $pg_ts_hash=calculate_HMACMD5_hash($message_to_hash, $key); $submit_button_label="Continue"; } ?> SWP-Redirect


API Login ID: Transaction Type: Version Number: Total Amount:
UTC Time: Transaction Order Number: Client Command: Payment Method ID:
Payment Command: First Name: Last Name: Company Name:
Street 1: Street 2: City: State:
Postal Code: Country Code: Email: Phone:
Shipto Name: Shipto Street 1: Shipto Street 2: Shipto City:
Shipto State: Shipto Postal Code: Consumer ID: Client Status:
Invoice/Order Number: Wallet ID: Merchant Data 1: Merchant Data 2:
Merchant Data 3: Merchant Data 4: Merchant Data 5: Merchant Data 6:
Merchant Data 7: Merchant Data 8: Merchant Data 9: Line Item Header:
Line Item 1: Line Item 2: Line Item 3: Line Item 4:
Line Item 5: Line Item 6: Line Item 7: Line Item 8:
Line Item 9: Line Item 10: User Defined 1: User Defined 2:
User Defined 3: User Defined 4: User Defined 5: User Defined 6:
User Defined 7: User Defined 8: User Defined 9: User Defined 10:
Sales Tax Amount: Service ("convenience") Fee: AVS Method: Scheduled Transaction (0=no, 1=yes):
Schedule Quantity: Schedule Frequency: Schedule Start Date: CC Type:
CC Name: CC Expiration Year (yyyy): CC Expiration Month (mm): CC Number:
CC Security Code: CC Account Code: CC Procurement Card (true/false): CC Swipe Data:
EFT TRN: EFT Account Number: EFT Check Number: EFT Account Type:
Note: Is Default? (0=false, 1=true): One-time token: Return (postback) URL: Return Method:
Signature: Key:

Environment URL:
			        

                    Environment URLs

Live - https://swp.paymentsgateway.net/Redirect/default.aspx Sandbox - https://sandbox.paymentsgateway.net/SWP/Redirect/default.aspx