Skip to content

Instantly share code, notes, and snippets.

@kloon
Last active December 16, 2015 13:19
Show Gist options
  • Select an option

  • Save kloon/5441297 to your computer and use it in GitHub Desktop.

Select an option

Save kloon/5441297 to your computer and use it in GitHub Desktop.
WooCommerce eWAY Shared Payments Page Title
<?php
// Page Title, displayed as the title of the browser
add_filter( 'eway_shared_page_tite', 'woocommerce_eway_page_title' );
function woocommerce_eway_page_title() {
return __( 'My New Page Title', 'woocommerce' );
}
// Company Name, the name of the company the customer is buying from
add_filter( 'eway_shared_company_name', 'woocommerce_eway_company_name' );
function woocommerce_eway_company_name() {
return __( 'My Company', 'woocommerce' );
}
// Description, displayed above transaction details
add_filter( 'eway_shared_page_description', 'woocommerce_eway_description' );
function woocommerce_eway_description() {
return __( 'My New Description', 'woocommerce' );
}
// Page Footer, displayed below transaction details
add_filter( 'eway_shared_page_footer', 'woocommerce_eway_footer' );
function woocommerce_eway_footer() {
return __( 'My New Footer Text', 'woocommerce' );
}
// Language, to display the page in another language, use any of following language codes EN, ES, FR, DE, NL
add_filter( 'eway_shared_language', 'woocommerce_eway_language' );
function woocommerce_eway_language() {
return "EN";
}
// Company Logo, full secure url to your company logo, must be https, restricted to 960px X 65px.
add_filter( 'eway_shared_company_logo', 'woocommerce_eway_logo' );
function woocommerce_eway_logo() {
return "https://www.example.com/images/logo.png";
}
// Page Banner, this is displayed just below the company logo, must be https, restricted to 960px X 65px.
add_filter( 'eway_shared_page_banner', 'woocommerce_eway_banner' );
function woocommerce_eway_banner() {
return "https://www.example.com/images/logo.png";
}
// Allow customer to modify customer details on eWAY payment page
add_filter( 'eway_shared_modifiable_customer_details', 'woocommerce_eway_modify_customer' );
function woocommerce_eway_modify_customer() {
return "True";
}
?>
@full-stack-king
Copy link
Copy Markdown

hi.. is this complete code for eway shared payment.?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment