{"id":4187,"date":"2023-04-04T17:40:05","date_gmt":"2023-04-04T08:40:05","guid":{"rendered":"https:\/\/weseek.co.jp\/tech\/?p=4187"},"modified":"2023-04-17T10:25:22","modified_gmt":"2023-04-17T01:25:22","slug":"stripe%e3%81%a7%e6%b5%b7%e5%a4%96%e5%b1%95%e9%96%8b%e3%81%99%e3%82%8b%e9%9a%9b%e3%81%ab%e6%b0%97%e3%82%92%e3%81%a4%e3%81%91%e3%82%8b%e3%81%b9%e3%81%8d%e3%81%93%e3%81%a82%e9%81%b8%ef%bc%81","status":"publish","type":"post","link":"https:\/\/weseek.co.jp\/tech\/4187\/","title":{"rendered":"Stripe\u3067\u6d77\u5916\u5c55\u958b\u3059\u308b\u969b\u306b\u6c17\u3092\u3064\u3051\u308b\u3079\u304d2\u3064\u306e\u30dd\u30a4\u30f3\u30c8\uff01"},"content":{"rendered":"<h1>\u306f\u3058\u3081\u306b<\/h1>\n<p>\u306f\u3058\u3081\u307e\u3057\u3066\u3002\u30a8\u30f3\u30b8\u30cb\u30a2\u306e Ryo \u3067\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001\u30aa\u30f3\u30e9\u30a4\u30f3\u6c7a\u6e08\u30b5\u30fc\u30d3\u30b9 Stripe \u3092\u7528\u3044\u3066\u6d77\u5916\u5c55\u958b\u3092\u3054\u691c\u8a0e\u4e2d\u306e\u30b5\u30fc\u30d3\u30b9\u63d0\u4f9b\u8005\u5411\u3051\u306b\u3001\u6c17\u3092\u3064\u3051\u3066\u304a\u304f\u3079\u304d\u70b9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u203b\u3053\u3061\u3089\u306e\u8a18\u4e8b\u306f\u3001\u3059\u3067\u306b Stripe \u3092\u30b5\u30fc\u30d3\u30b9\u306b\u5c0e\u5165\u3057\u3066\u3044\u308b\u3068\u3044\u3046\u524d\u63d0\u3067\u4f5c\u6210\u3055\u308c\u3066\u304a\u308a\u307e\u3059\u3002\u3082\u3057\u3001Stripe \u3092\u691c\u8a0e\u4e2d\u3067\u307e\u3060\u5c0e\u5165\u3055\u308c\u3066\u306a\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067 Stripe \u5c0e\u5165\u306e\u30e1\u30ea\u30c3\u30c8\u3084\u6271\u3046\u30c7\u30fc\u30bf\u306e\u7a2e\u985e\u3001\u5b9f\u969b\u306b\u30b5\u30fc\u30d3\u30b9\u3067\u3069\u306e\u3088\u3046\u306b\u5229\u7528\u3055\u308c\u3066\u3044\u308b\u304b\u306a\u3069\u3092\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"https:\/\/weseek.co.jp\/tech\/1647\/\">Stripe\u3092\u4f7f\u3063\u305f\u7c21\u5358\u306a\u30b5\u30d6\u30b9\u30af\u578b\u8ab2\u91d1\u30b5\u30fc\u30d3\u30b9\u306e\u4f5c\u308a\u65b9<\/a><\/p>\n<p><!--more--><\/p>\n\n<h1>Stripe \u3092\u4f7f\u3063\u305f\u6d77\u5916\u5c55\u958b\u306b\u3064\u3044\u3066<\/h1>\n<p>Stripe \u3067\u306f\u3001135 \u3092\u8d85\u3048\u308b\u901a\u8ca8\u3067\u306e\u652f\u6255\u3044\u51e6\u7406\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5f0a\u793e\u958b\u767a\u306e\u30b5\u30fc\u30d3\u30b9\u3000GROWI.cloud \u3082\u3001\u5143\u3005\u306f\u65e5\u672c\u5186\u306e\u307f\u3067\u3057\u305f\u304c\u3001\u6d77\u5916\u5c55\u958b\u3068\u3057\u3066\u30d5\u30a3\u30ea\u30d4\u30f3\u306b\u5411\u3051\u305f\u30b5\u30fc\u30d3\u30b9\u5c55\u958b\u306e\u969b\u306b Stripe \u306e\u529b\u3092\u501f\u308a\u3001\u73fe\u5730\u306e\u901a\u8ca8\u3067\u5546\u54c1\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001GROWI.cloud \u306e\u30d5\u30a3\u30ea\u30d4\u30f3\u30e6\u30fc\u30b6\u30fc\u306f\u73fe\u5730\u901a\u8ca8\u3092\u65e5\u672c\u5186\u306b\u63db\u7b97\u3059\u308b\u53ca\u3073\u63db\u7b97\u306b\u304b\u304b\u308b\u624b\u6570\u6599\u3092\u6255\u308f\u305a\u3057\u3066\u30b5\u30fc\u30d3\u30b9\u3092\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<h1>\u6c17\u3092\u3064\u3051\u308b\u3079\u304d\u3053\u3068<\/h1>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b Stripe \u3092\u5229\u7528\u3059\u308c\u3070\u5e45\u5e83\u3044\u901a\u8ca8\u3067\u30b5\u30fc\u30d3\u30b9\u306e\u5546\u54c1\u3092\u63d0\u4f9b\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001Stripe \u3092\u5229\u7528\u3057\u7570\u306a\u308b\u901a\u8ca8\u3092\u53d6\u308a\u5165\u308c\u308b\u969b\u306b\u6c17\u3092\u3064\u3051\u3066\u304a\u304f\u3079\u304d\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u304b\u3089\u306f\u3001\u5b9f\u969b\u306b GROWI.cloud \u3067\u7b2c\uff12\u306e\u901a\u8ca8\u3092\u53d6\u308a\u5165\u308c\u308b\u969b\u306b\u9665\u3063\u3066\u3057\u307e\u3063\u305f\u8ab2\u984c\u3092\u3082\u3068\u306b\u6c17\u3092\u3064\u3051\u3066\u304a\u304f\u3079\u304d\u70b9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h2>1. \u73fe\u5728\u5951\u7d04\u4e2d\u306e\u5546\u54c1\u306e\u901a\u8ca8\u3068\u7570\u306a\u308b\u5546\u54c1\u306b\u306f\u5909\u66f4\u3067\u304d\u306a\u3044<\/h2>\n<p>Stripe \u3067\u306f\u30c8\u30e9\u30a4\u30a2\u30eb\u3082\u542b\u3081\u5546\u54c1\u306e\u5951\u7d04\u304c\u884c\u308f\u308c\u308b\u3068\u305d\u306e\u5951\u7d04\u4e3b\u4f53\u306b\u5bfe\u3057\u30c7\u30d5\u30a9\u30eb\u30c8\u901a\u8ca8\u304c\u8a2d\u5b9a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u3001\u4e00\u5ea6\u8a2d\u5b9a\u3055\u308c\u305f\u30c7\u30d5\u30a9\u30eb\u30c8\u901a\u8ca8\u306f\u5909\u66f4\u304c\u3067\u304d\u306a\u3044\u305f\u3081\u73fe\u5728\u5951\u7d04\u4e2d\u306e\u901a\u8ca8\u3068\u7570\u306a\u308b\u901a\u8ca8\u306e\u5546\u54c1\u3092\u8cfc\u5165\u3059\u308b\u5834\u5408\u306f\u3001\u65b0\u3057\u304f\u5951\u7d04\u4e3b\u4f53(\u30a2\u30ab\u30a6\u30f3\u30c8)\u3092\u7528\u610f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>2. \u901a\u8ca8\u306e\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6709\u7121\u304c\u8a2d\u5b9a\u3059\u308b\u91d1\u984d\u306b\u5f71\u97ff\u3059\u308b<\/h2>\n<p>Stripe \u3067\u5229\u7528\u3067\u304d\u308b\u901a\u8ca8\u3067\u306f\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6709\u7121\u306b\u3088\u3063\u3066\u8a2d\u5b9a\u3059\u308b\u91d1\u984d\u306b\u969b\u304c\u751f\u3058\u307e\u3059\u3002<\/p>\n<p>\u300c\u901a\u8ca8\u306e\u5c0f\u6570\u70b9\u306e\u6709\u7121\u300d\u306f\u3001\u65e5\u672c\u5186\u3067\u666e\u6bb5\u6c7a\u6e08\u3092\u3057\u3066\u3044\u308b\u3068\u99b4\u67d3\u307f\u306e\u306a\u3044\u30ef\u30fc\u30c9\u3060\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001<br \/>\n<code>2,000\u5186<\/code> \u3067\u63d0\u4f9b\u3057\u3066\u3044\u308b\u5546\u54c1\u3092\u30a2\u30e1\u30ea\u30ab\u306b <code>20 USD<\/code> \u3067\u5c55\u958b\u3059\u308b\u5834\u5408\u3092\u4f8b\u306b\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>Stripe \u306b\u304a\u3051\u308b USD \u306f\u300c\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6709\u308b\u901a\u8ca8\u300d\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n\u53b3\u5bc6\u306b\u306f\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b2\u6841\u76ee\u3092\uff11\u306e\u4f4d\u3068\u3057\u3066\u6271\u3046\u901a\u8ca8\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f USD \u3068\u3044\u3046\u901a\u8ca8\u306e\u6700\u5c0f\u5358\u4f4d\u3067\u3042\u308b\u30bb\u30f3\u30c8\u306b\u57fa\u3065\u304f\u3082\u306e\u3067\u3042\u308a<code>1 USD\uff1d100 \u30bb\u30f3\u30c8<\/code>\u3068\u306a\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001<code>20 USD<\/code> \u306e\u3064\u3082\u308a\u3067 amount \u306b <code>20<\/code> \u3092\u8a2d\u5b9a\u3057\u3066\u3057\u307e\u3046\u3068\u305d\u306e\u5546\u54c1\u306b\u8a2d\u5b9a\u3055\u308c\u308b\u91d1\u984d\u306f <code>0.2 USD<\/code> \u3064\u307e\u308a <code>20 \u30bb\u30f3\u30c8<\/code>\u3068\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br \/>\n\u306a\u306e\u3067\u3001<code>20 USD<\/code> \u3092\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306b\u306f amount \u3092 <code>2000<\/code> \u306b\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u5c0f\u6570\u70b9\u4ee5\u4e0b\u304c\u5b58\u5728\u3059\u308b\u4ee3\u8868\u7684\u306a\u901a\u8ca8<\/p>\n<ul>\n<li>USD (\u7c73\u30c9\u30eb)<\/li>\n<li>EUR (\u30e6\u30fc\u30ed)<\/li>\n<li>PHP (\u30d5\u30a3\u30ea\u30d4\u30f3\u30fb\u30da\u30bd)<\/li>\n<\/ul>\n<p>\u53cd\u5bfe\u306b\u65e5\u672c\u5186\u306f\u300c\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u7121\u3044\u901a\u8ca8\u300d\u306b\u632f\u308a\u5206\u3051\u3089\u308c\u307e\u3059\u3002<br \/>\n\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u306a\u3044\u901a\u8ca8\u306e\u5834\u5408\u306f\u3001<code>100<\/code> \u3092\u639b\u3051\u305a\u306b\u6574\u6570\u3068\u3057\u3066\u91d1\u984d\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081 <code>2000<\/code> \u3068\u3044\u3046\u6570\u5024\u3092\u305d\u306e\u307e\u307e\u65e5\u672c\u5186\u306e\u91d1\u984d\u3068\u3057\u3066\u5546\u54c1\u306b\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u5c0f\u6570\u70b9\u4ee5\u4e0b\u304c\u5b58\u5728\u3057\u306a\u3044\u4ee3\u8868\u7684\u306a\u901a\u8ca8<\/p>\n<ul>\n<li>JPY (\u65e5\u672c\u5186)<\/li>\n<li>KRW (\u5927\u97d3\u6c11\u56fd\u30a6\u30a9\u30f3)<\/li>\n<\/ul>\n<h3>GROWI.cloud \u3067\u884c\u3063\u3066\u3044\u308b\u30ef\u30fc\u30af\u30a2\u30e9\u30a6\u30f3\u30c9<\/h3>\n<p>GROWI.cloud \u3067\u306f\u65e5\u672c\u5186\u3068\u30d5\u30a3\u30ea\u30d4\u30f3\u30fb\u30da\u30bd\u3068\u3044\u3046\u300c\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u7121\u3044\u901a\u8ca8\u300d\u300c\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6709\u308b\u901a\u8ca8\u300d\u304c\u4f75\u5b58\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u91d1\u984d\u3092\u8868\u793a\u3059\u308b\u753b\u9762\u306a\u3069\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30ef\u30fc\u30af\u30a2\u30e9\u30a6\u30f3\u30c9\u3092\u63a1\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">const CURRENCY_LIST = {\n  JPY: &#039;jpy&#039;,\n  PHP: &#039;php&#039;,\n};\n\n\/\/ \u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u306a\u3044\u901a\u8ca8\u306e\u30ea\u30b9\u30c8\nconst CURRENCY_WITHOUT_SUBUNIT_LIST = [\n  CURRENCY_LIST.JPY, \/\/ \u65e5\u672c\u5186\n];<\/code><\/pre>\n<pre><code class=\"language-js\">\/**\n * \u53d7\u3051\u53d6\u3063\u305f\u91d1\u984d\u5024\u3092\u901a\u8ca8\u306e\u7a2e\u985e\u3054\u3068\u306b\u6210\u5f62\u3057\u3066\u8fd4\u3059\n *  \u4f8b\uff1a2000 \u00d7 JPY =&gt; \u00a52,000\n *  \u4f8b\uff1a2000 \u00d7 PHP =&gt; \u20b120.00\n * @param {number} amount\n * @param {string} currency\n * @returns {string}\n *\/\nconst getFormattedPrice = (amount, currency) =&gt; {\n  if (amount == null || Number.isNaN(amount)) {\n    return &#039;-&#039;;\n  }\n  \/\/ \u5c0f\u6570\u70b9\u4ee5\u4e0b\u304c\u3042\u308b\u901a\u8ca8\u306e\u5834\u5408\n  if (!CURRENCY_WITHOUT_SUBUNIT_LIST.includes(currency)) {\n    \/\/ \u4f8b\uff1a2000 \u00d7 PHP =&gt; \u20b120.00\n    return priceFormat(currency).format(amount \/ 100);\n  }\n\n  \/\/ \u4f8b\uff1a2000 \u00d7 JPY =&gt; \u00a52,000\n  return priceFormat(currency).format(amount);\n};<\/code><\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u8868\u793a\u91d1\u984d\u3092\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6709\u7121\u306b\u3088\u3063\u3066 <code>100<\/code> \u3067\u5272\u308b\u5272\u3089\u306a\u3044\u306e\u5207\u308a\u5206\u3051\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>Stripe \u3092\u5229\u7528\u3057\u3066\u6d77\u5916\u5c55\u958b\u3059\u308b\u969b\u306b\u6c17\u3092\u3064\u3051\u3066\u304a\u304f\u3079\u304d\u3053\u3068\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u300c\u901a\u8ca8\u306e\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6709\u7121\u300d\u306b\u95a2\u3057\u3066\u306f\u3001GROWI.cloud \u3067\u65e5\u672c\u5186\u3067\u306e\u307f\u5546\u54c1\u3092\u63d0\u4f9b\u3057\u3066\u3044\u305f\u79c1\u305f\u3061\u3082\u82e6\u3057\u3081\u3089\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u9006\u306b\u4eca\u56de\u7d39\u4ecb\u3057\u305f\u70b9\u3055\u3048\u6ce8\u610f\u3057\u3066\u304a\u3051\u3070\u3001\u591a\u304f\u306e\u901a\u8ca8\u3067\u30b5\u30fc\u30d3\u30b9\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u305c\u3072\u5229\u7528\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h1>\u53c2\u8003\u8cc7\u6599<\/h1>\n<ul>\n<li><a href=\"https:\/\/stripe.com\/docs\/currencies?locale=ja-JP#presentment-currencies\">https:\/\/stripe.com\/docs\/currencies?locale=ja-JP#presentment-currencies<\/a><\/li>\n<li><a href=\"https:\/\/support.stripe.com\/questions\/setting-a-customers-default-currency\">https:\/\/support.stripe.com\/questions\/setting-a-customers-default-currency<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u306f\u3058\u3081\u307e\u3057\u3066\u3002\u30a8\u30f3\u30b8\u30cb\u30a2\u306e Ryo \u3067\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001\u30aa\u30f3\u30e9\u30a4\u30f3\u6c7a\u6e08\u30b5\u30fc\u30d3\u30b9 Stripe \u3092\u7528\u3044\u3066\u6d77\u5916\u5c55\u958b\u3092\u3054\u691c\u8a0e\u4e2d\u306e\u30b5\u30fc\u30d3\u30b9\u63d0\u4f9b\u8005\u5411\u3051\u306b\u3001\u6c17\u3092\u3064\u3051\u3066\u304a\u304f\u3079\u304d\u70b9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002 \u203b\u3053\u3061\u3089\u306e\u8a18\u4e8b\u306f\u3001\u3059\u3067\u306b Str<\/p>\n","protected":false},"author":3,"featured_media":3816,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[28],"tags":[],"_links":{"self":[{"href":"https:\/\/weseek.co.jp\/tech\/wp-json\/wp\/v2\/posts\/4187"}],"collection":[{"href":"https:\/\/weseek.co.jp\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/weseek.co.jp\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/weseek.co.jp\/tech\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/weseek.co.jp\/tech\/wp-json\/wp\/v2\/comments?post=4187"}],"version-history":[{"count":15,"href":"https:\/\/weseek.co.jp\/tech\/wp-json\/wp\/v2\/posts\/4187\/revisions"}],"predecessor-version":[{"id":4214,"href":"https:\/\/weseek.co.jp\/tech\/wp-json\/wp\/v2\/posts\/4187\/revisions\/4214"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/weseek.co.jp\/tech\/wp-json\/wp\/v2\/media\/3816"}],"wp:attachment":[{"href":"https:\/\/weseek.co.jp\/tech\/wp-json\/wp\/v2\/media?parent=4187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/weseek.co.jp\/tech\/wp-json\/wp\/v2\/categories?post=4187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/weseek.co.jp\/tech\/wp-json\/wp\/v2\/tags?post=4187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}