Function Reference: geodir_payment_form_worldpay

Summary

This function has not been documented yet.

Filters

‘geodir_worldpay_item_name’ [Line: 252]

Source Code

function geodir_payment_form_worldpay( $invoice_id ) {
	$invoice_info = geodir_get_invoice( $invoice_id ); 
	$paymentmethod = get_payment_options( $invoice_info->paymentmethod );
	$sandbox = $paymentmethod['payment_mode'] == 'sandbox' ? true : false;
    $ipn_url = geodir_info_url(  array( 'pay_action' => 'ipn', 'pmethod' => 'worldpay'));


    $user_id = $invoice_info->user_id;
	$post_id = $invoice_info->post_id;
	$item_name = $invoice_info->post_title;
	$item_name = apply_filters( 'geodir_worldpay_item_name', $item_name, $invoice_id );
	$payable_amount = $invoice_info->paied_amount;
	
	$client_name = geodir_get_client_name( $user_id );
	$client_email = geodir_payment_get_client_email( $user_id );
	
	$currency_code = geodir_get_currency_type();
							
	$instId = $paymentmethod['instId'];
	$accId1 = $paymentmethod['accId1'];
	$cartId = $invoice_id;
	$desc = $item_name;
	$currency = $currency_code;
	$amount = $payable_amount;
	
	$action_url = $sandbox ? 'https://secure-test.worldpay.com/wcc/purchase' : 'https://secure.worldpay.com/wcc/purchase';
	$testMode = $sandbox ? 100 : 0;
	?>