' . esc_html__( 'When you choose AcquirerOS at checkout, information required to process the payment may be sent to the payment endpoint configured by the store. This can include order details, billing and shipping information, contact details, IP address, browser information, and, only when S2S / Direct API mode is enabled, card details needed to authorize the transaction. Hosted Checkout mode redirects customers to the payment provider and does not collect card number, expiry date, or CVV in WordPress.', 'acquireros-payment-gateway' ) . '';
wp_add_privacy_policy_content(
__( 'AcquirerOS Payment Gateway', 'acquireros-payment-gateway' ),
wp_kses_post( $content )
);
}
);
/**
* Migrate settings from the legacy gateway ID used by older Doyza packages.
*/
register_activation_hook(
__FILE__,
static function () {
$new_option = 'woocommerce_acquireros_gateway_settings';
$old_option = 'woocommerce_unify_app_b_settings';
if ( false === get_option( $new_option, false ) ) {
$legacy = get_option( $old_option, false );
if ( is_array( $legacy ) && ! empty( $legacy ) ) {
$legacy['title'] = isset( $legacy['title'] ) ? $legacy['title'] : 'Credit Card';
$legacy['description'] = isset( $legacy['description'] ) ? $legacy['description'] : 'Pay securely by credit or debit card.';
if ( 'woocommerce_acquireros_gateway_settings' === $new_option ) {
update_option( 'woocommerce_acquireros_gateway_settings', $legacy, false );
}
}
}
}
);