Last active
September 5, 2018 01:54
-
-
Save mt8/05c5d0cf1a2267adcf6e60ff773a0cdf to your computer and use it in GitHub Desktop.
[WordPress] WooCommerce Stripe Gateway でステートメント記述子に日本語を使いたい場合に使うコード
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_stripe_request_body', function( $post_data, $order ) { | |
//カスタマーのクレジットカード明細に載るので実際にはstripeではなく、 | |
//サイト名や会社名の英字表記にする(5〜22文字)。 | |
//記号とかは使わない方がよさそう。 | |
$post_data['statement_descriptor'] = 'stripe'; | |
return $post_data; | |
},10,2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment