{"id":107298,"date":"2021-06-09T09:21:39","date_gmt":"2021-06-09T00:21:39","guid":{"rendered":"https:\/\/support.questetra.com\/?p=107298"},"modified":"2022-06-07T16:59:46","modified_gmt":"2022-06-07T07:59:46","slug":"stripe-customer-charge-2021","status":"publish","type":"post","link":"https:\/\/support.questetra.com\/en\/addons\/stripe-customer-charge-2021\/","title":{"rendered":"Stripe: Customer, Charge"},"content":{"rendered":"<div class=\"su-note\"  style=\"border-color:#e5dab2;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#FFF4CC;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\">\n<h3><i class=\"fal fa-exclamation-circle\"><\/i> PAGE UPDATED<\/h3>\n<div style=\"text-align: center;\"><i class=\"fal fa-truck fa-lg\"><\/i> <a href=\"https:\/\/support.questetra.com\/en\/addons\/stripe-customer-charge-202107\/\">https:\/\/support.questetra.com\/addons\/stripe-customer-charge-202107\/<\/a><\/div>\n<\/div><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#003e04;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#267137;color:#ffffff;border-top-left-radius:0px;border-top-right-radius:0px\">Stripe: Customer, Charge<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\"> Creates the Charge object on the payment platform Stripe to charge the Customer ID (cus_12345678901234) for any amount in any currency. If the charging process fails, Charge object is not created and error log such as expired_card is output.<\/div><\/div>\n\n\n<div class=\"su-spoiler su-spoiler-style-modern-light su-spoiler-icon-plus-square-1\" data-anchor=\"configs\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>Configs<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<ul class=\"fa-ul\">\n<li>U: Select HTTP_Authz Setting<span style=\"color:#990000;\"> *<\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> B: Set Cusomer ID<span style=\"color:#990000;\"> *<\/span><span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> C1: Set Charge Amount in positive integer.<span style=\"color:#990000;\"> *<\/span><span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> C2: Set Currency Code (e.g. &#8220;USD&#8221; &#8220;JPY&#8221; &#8220;EUR&#8221; etc)<span style=\"color:#990000;\"> *<\/span><span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> C3: Set Charge Description (Registration Num, Corp Name, etc)<span style=\"color:#990000;\"> *<\/span><span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li> D1: Select STRING DATA for Stripe Charge ID (update)<\/li>\n<li> D2: Select STRING DATA for Card Brand (update)<\/li>\n<li> D3: Select STRING DATA for Card Last4 (update)<\/li>\n<li> D4: Select STRING\/YMDATE for Card Exp (update)<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n<div class=\"su-spoiler su-spoiler-style-modern-light su-spoiler-icon-plus-square-1 su-spoiler-closed\" data-anchor=\"script\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>Script (click to open)<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\/\/ GraalJS Script (engine type: 2)\n\n\/\/\/\/\/\/\/\/ START &quot;main()&quot; \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\nmain();\nfunction main(){ \n\n\/\/\/\/ == Config Retrieving \/ \u5de5\u7a0b\u30b3\u30f3\u30d5\u30a3\u30b0\u306e\u53c2\u7167 ==\nconst strAuthzSetting     = configs.get      ( &quot;AuthzConfU&quot; );   \/\/\/ REQUIRED\n  engine.log( &quot; AutomatedTask Config: Authz Setting: &quot; + strAuthzSetting );\nconst strCustomerId    = configs.get( &quot;strSetConfB&quot;  ); \/\/ required\nlet   strChargeAmount  = configs.get( &quot;strSetConfC1&quot; ); \/\/ required\nconst strCurrencyCode  = configs.get( &quot;strSetConfC2&quot; ); \/\/ required\nconst strChargeDescr   = configs.get( &quot;strSetConfC3&quot; ); \/\/ required\nconst pocketChargeId   = configs.getObject( &quot;SelectConfD1&quot; ); \/\/ not\nconst pocketCardBrand  = configs.getObject( &quot;SelectConfD2&quot; ); \/\/ not\nconst pocketCardLast4  = configs.getObject( &quot;SelectConfD3&quot; ); \/\/ not\nconst pocketCardExp    = configs.getObject( &quot;SelectConfD4&quot; ); \/\/ not *STRING\/YMDATE\n\nif( strCustomerId === &quot;&quot; ){\n  throw new Error( &quot;\\n AutomatedTask ConfigError:&quot; +\n                   &quot; Config {Customer ID B} is empty \\n&quot; );\n}\nif( strChargeAmount === &quot;&quot; ){\n  throw new Error( &quot;\\n AutomatedTask ConfigError:&quot; +\n                   &quot; Config {ChargeAmount C1} is empty \\n&quot; );\n}\nif( strCurrencyCode === &quot;&quot; ){\n  throw new Error( &quot;\\n AutomatedTask ConfigError:&quot; +\n                   &quot; Config {CurrencyCode C2} is empty \\n&quot; );\n}\nif( strChargeDescr === &quot;&quot; ){\n  throw new Error( &quot;\\n AutomatedTask ConfigError:&quot; +\n                   &quot; Config {ChargeDescription C3} is empty \\n&quot; );\n}\n\nstrChargeAmount = strChargeAmount.replace(\/,\/g, &#39;&#39;).replace(\/\\.\/g, &#39;&#39;);\nlet numChargeAmount = parseInt( strChargeAmount, 10 );\nif( numChargeAmount &lt;= 0 ){\n  throw new Error( &quot;\\n AutomatedTask ConfigError:&quot; +\n                   &quot; Config {ChargeAmount C1} must be positive \\n&quot; );\n}\nstrChargeAmount = numChargeAmount + &quot;&quot;;\n\n\n\/\/\/\/ == Data Retrieving \/ \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u306e\u53c2\u7167 ==\n\/\/ (nothing, except Expression Language config)\n\n\n\/\/\/\/ == Calculating \/ \u6f14\u7b97 ==\n\/\/\/ Create Charge Object\n\/\/\/ POST \/v1\/charges\n\/\/ https:\/\/stripe.com\/docs\/api\/charges\/create\n\/\/ https:\/\/stripe.com\/docs\/api\/authentication\n\/\/ If you need to authenticate via bearer auth (e.g., for a cross-origin request), \n\/\/ use -H &quot;Authorization: Bearer sk_xxx&quot; instead of -u sk_test_xxx.\n\n\/\/ preparing for API Request\nlet apiUri = &quot;https:\/\/api.stripe.com\/v1\/charges&quot;;\nlet apiRequest = httpClient.begin(); \/\/ HttpRequestWrapper\n    apiRequest = apiRequest.authSetting( strAuthzSetting ); \/\/ with &quot;Authorization: Bearer XX&quot;\n    \/\/ https:\/\/questetra.zendesk.com\/hc\/en-us\/articles\/360024574471-R2300#HttpRequestWrapper\n    apiRequest = apiRequest.formParam( &quot;customer&quot;,    strCustomerId   );\n    apiRequest = apiRequest.formParam( &quot;amount&quot;,      strChargeAmount );\n    apiRequest = apiRequest.formParam( &quot;currency&quot;,    strCurrencyCode );\n    apiRequest = apiRequest.formParam( &quot;description&quot;, strChargeDescr  );\n\n\/\/ throwing Request to the API (POST, GET, PUT, etc)\nengine.log( &quot; AutomatedTask Trying: POST &quot; + apiUri );\nconst response = apiRequest.post( apiUri );\nconst responseCode = response.getStatusCode() + &quot;&quot;;\nengine.log( &quot; AutomatedTask ApiResponse: Status &quot; + responseCode );\nif( responseCode !== &quot;200&quot;){\n  throw new Error( &quot;\\n AutomatedTask UnexpectedResponseError: &quot; +\n                    responseCode + &quot;\\n&quot; + response.getResponseAsString() + &quot;\\n&quot; );\n} \/\/ C.F. https:\/\/stripe.com\/docs\/api\/errors\n\n\/\/ parsing Response Json\nconst responseStr = response.getResponseAsString() + &quot;&quot;;\n\/\/engine.log( &quot; DEBUG for api upgrade: \\n&quot; + responseStr );\nconst responseObj = JSON.parse( responseStr );\nengine.log( &quot; AutomatedTask ApiResponse:&quot; +\n            &quot; New ChargeObject ID: &quot; + responseObj.id );\nengine.log( &quot; AutomatedTask ApiResponse:&quot; +\n            &quot; Card Brand: &quot; + responseObj.source.brand );\n\n\n\/\/\/\/ == Data Updating \/ \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u3078\u306e\u4ee3\u5165 ==\nif( pocketChargeId !== null ){ \/\/ STRING\n  engine.setData( pocketChargeId, responseObj.id );\n}\nif( pocketCardBrand !== null ){ \/\/ STRING\n  engine.setData( pocketCardBrand, responseObj.source.brand );\n}\nif( pocketCardLast4 !== null ){ \/\/ STRING\n  engine.setData( pocketCardLast4, responseObj.source.last4 );\n}\nif( pocketCardExp !== null ){ \/\/ STRING or YMDATE\n  if( pocketCardExp.matchDataType( &quot;STRING&quot; ) ){\n    engine.setData( pocketCardExp, \n         (&quot;0&quot; + responseObj.source.exp_month).slice(-2) + &quot;\/&quot; +\n         responseObj.source.exp_year );\n  }else{\n    engine.setData( pocketCardExp, \n         java.sql.Date.valueOf(\n           responseObj.source.exp_year + &quot;-&quot; +\n           (&quot;0&quot; + responseObj.source.exp_month).slice(-2) + &quot;-01&quot;\n         )\n    );\n  }\n}\n\n} \/\/\/\/\/\/\/\/ END &quot;main()&quot; \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\/*\n\nNotes-en:\n- Can include the automated step &quot;charging process&quot; into the workflow. (No code)\n    - When the matter reaches, a charging request is automatically sent to the Stripe API.\n    - https:\/\/stripe.com\/docs\/api\/charges\n- A positive integer representing how much to charge in the smallest currency unit.\n    - e.g., &quot;100&quot; cents to charge $1.00\n    - e.g., &quot;100&quot; to charge \\100 (a zero-decimal currency) (JPY)\n    - &quot;#{#q_numUsdWithoutCent}00&quot; is also possible if numerical data without auxiliary info\n- If present, commas &quot;,&quot; and periods &quot;.&quot; are removed in advance.\n    - When using numeric data, be careful of the number of digits after the decimal point.\n\nAPPENDIX-en:\n- Numeric parsing depends on JavaScript parseInt(x,10). (The prefix gives an error)\n    - See below for more information on available currency codes (JPY, USD, EUR, ...).\n    - https:\/\/stripe.com\/docs\/currencies\n- In case of USD, the minimum amount is $0.50 or equivalent.\n    - The amount value supports up to eight digits (e.g., for a USD charge of $999,999.99)\n- Refer to the following for the error codes (ResponseCode other than 200).\n    - https:\/\/stripe.com\/docs\/api\/errors\n\nNotes-ja:\n- \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u5185\u306b\u81ea\u52d5\u5de5\u7a0b\u300e\u8ab2\u91d1\u51e6\u7406\u300f\u3092\u7d44\u307f\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\uff08\u30ce\u30fc\u30b3\u30fc\u30c9\u5b9f\u88c5\uff09\n    - \u6848\u4ef6\u304c\u81ea\u52d5\u5de5\u7a0b\u306b\u5230\u9054\u3059\u308b\u3068\u3001Stripe API \u306b\u5bfe\u3057\u3066\u8ab2\u91d1\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u81ea\u52d5\u9001\u4fe1\u3055\u308c\u307e\u3059\u3002\n    - https:\/\/stripe.com\/docs\/api\/charges\n- \u8ab2\u91d1\u984d\u306e\u8a2d\u5b9a\u306f\u3001\u6700\u5c0f\u306e\u901a\u8ca8\u5358\u4f4d\u3067\u8868\u73fe\u3057\u307e\u3059\u3002\uff08\u6b63\u306e\u6574\u6570\uff09\n    - &quot;1.00\u30c9\u30eb&quot; \u306e\u5834\u5408\u306f &quot;100&quot; \u30bb\u30f3\u30c8 (USD)\n    - \u5c0f\u6570\u306e\u306a\u3044\u5186\u901a\u8ca8\u306e\u5834\u5408\u306f &quot;100\u5186&quot; \u306f &quot;100&quot; \u5186 (JPY)\n    - &quot;1(\u30c9\u30eb)&quot; \u3068\u3044\u3063\u305f\u30c7\u30fc\u30bf\u306e\u5834\u5408 &quot;#{#q_numUsdWithoutCent}00&quot; \u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002\n- \u3082\u3057\u30ab\u30f3\u30de &quot;,&quot; \u3084\u30d4\u30ea\u30aa\u30c9 &quot;.&quot; \u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u306f\u8ab2\u91d1\u51e6\u7406\u524d\u306b\u9664\u53bb\u3055\u308c\u307e\u3059\u3002\n    - \u6570\u5024\u578b\u30c7\u30fc\u30bf\u306e\u5c0f\u6570\u3092\u4f7f\u3046\u5834\u5408\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6841\u6570\u8a2d\u5b9a\u306b\u6ce8\u610f\n    - &quot;100.00\u5186&quot; \u306f\u300c\uff11\u4e07\u5186\u300d\u306e\u8ab2\u91d1\u306b\u306a\u308a\u307e\u3059\u3002\n\nAPPENDIX-ja:\n- \u6570\u5024\u5224\u5b9a\u306f JavaScript parseInt(x,10) \u306b\u4f9d\u5b58\u3057\u307e\u3059 \uff08\u63a5\u982d\u8f9e\u306f\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\uff09\n    - \u5229\u7528\u3067\u304d\u308b\u901a\u8ca8\u30b3\u30fc\u30c9\u306e\u8a73\u7d30\u306f\u4ee5\u4e0b\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044 (JPY, USD, EUR, ...)\n    - https:\/\/stripe.com\/docs\/currencies\n- \u6700\u5c0f\u8ab2\u91d1\u91d1\u984d\u306f\u3001\u65e5\u672c\u5186\u306e\u5834\u5408\u300150\u5186\u3067\u3059\u3002\n    - \u8ab2\u91d1\u984d\u306e\u6700\u5927\u6841\u6570\u306f8\u6841\u3067\u3059\u3002\uff08\u65e5\u672c\u5186\u306e\u5834\u5408\u300199,999,999\u5186\uff09\n- \u30a8\u30e9\u30fc\u30b3\u30fc\u30c9\uff08200\u4ee5\u5916\u306eResponseCode\uff09\u306e\u5185\u5bb9\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n    - https:\/\/stripe.com\/docs\/api\/errors\n*\/\n\n<\/code><\/pre><\/div>\n\n\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright\"><a href=\"#\"><img decoding=\"async\" src=\"data:image;base64,\niVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAADaUlEQVRYR8WXSUwTYRTH\/x9bS8tS\nKCWIbLFElkgiICQdw2I0xujB6MGo0cRojOBJEy0HLyQmJlQDnoSLXDQYLibGNUoili0sAoKGICAE\nLLKWRVpKW+YzHWiBtpQpYGau897\/\/ea9973vDYHAD+EbP7O4TSKRLp0llBwBRToIEgCErfrPgGII\nBB2U0M9Gg+jl1+JDRj7aWwLka1qiWGotAkEBADEfUQAmUFT4EL+SWnX2mCcfjwA5JU0FhNBHAKQ8\nAzubGSgld+qKVBWb+W8KkKdpekJBC7cZeIMbASn\/olbddKflFiBH01hFgAu7EdyuQYEXdWrmorOm\nC8BufrlrMNdMbABYrXn5bn65sxalpHB9TzgAuG6HtX8HDceX2+ADv0T76XAA5JY0loHgFl+VHdlR\nPNYWMbdtGhyAbchIJeZpL875juLb5oTBGCC3DSsOIOdhwyVCyTNvVRXBAYgKEaFb99dbV1BCL9fd\nPfycA8jVND4FcNWTSt5+OaQiX7zrnnCY3T+dhMz4UJR++oWanilvISq1aubaCkBJYzsI0p0VVPvC\nIAnwhb8fwY3ceOhmTahq1sHf1weWZRaRISLEhYtR3zeDYLEfDGYrWBZoH55DgjwQSoUUA5MGDE0v\nusJRdGiLmAx7BvTrLhbO+N6pRBxLicCihcX0ghmx4YEwmZfRN2FAWkwILFYWUwtmyCT+6ByZh0oZ\nBpalsCxTvP8+gaMpEfAhgMnCQvNhAM2Ds84QM1o1E24HoM5vH5xJhkop48Tr+vS4nhOHnj8LGJtf\nwvFUBapbR5EaHYTkqCDOJitBhtahWWQlhGJYb0K8PBDD04uIlolR3TaKyvoRlyxo1QzZFCAjLhTn\ns6M5wYb+Ga7WvWMLGJ1bAahq0eFAdDBS9qwBdI7M4WBsKAanjFAqJOj6PQ+90QLtTz1qe22HbOOz\nHsClBKXnUrmgS1YWr7+NIz9JjoigAK6ee2ViFwBGubIazC9a8aZrHCfTIrnyGM3LKKsZxMcfkx5K\nsEkT8m1r9QmlIyvuUu1Wx6kJtzyGnmCuMDFgEsPxtmscrzrH+XKvHcPtDiK+kdzZbRhEgo\/i1WEk\n3GVkAxD8OuYupZUlVJiFxN4ogq5kdghBl9L\/kQmv13JHJoT8MbFDCPprtn6CCfZzupNxy8f3Hyxn\noTBfuPFrAAAAAElFTkSuQmCC\n\" alt=\"\"\/><\/a><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-cloud-download-alt\"><\/i> Download<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/drive.google.com\/file\/d\/1nhgQTEdss6R9NSvb1Err-PgDRrViCaui\/view?usp=drivesdk\" target=\"_blank\" rel=\"noreferrer noopener\">Stripe-Customer-Charge-2021.xml<\/a><\/li><\/ul>\n\n\n\n<p class=\"has-text-align-right has-small-font-size wp-block-paragraph\">2021-06-08 (C) Questetra, Inc. (MIT License)<br><a href=\"https:\/\/support.questetra.com\/en\/addons\/stripe-customer-charge-2021\/\">https:\/\/support.questetra.com\/addons\/stripe-customer-charge-2021\/<\/a><br><i class=\"fal fa-info-circle\"><\/i> The Addon-import feature is available with <span style=\"color:#4a86e8\" class=\"has-inline-color\"><strong>Professional<\/strong><\/span> edition.<\/p>\n\n\n<div class=\"su-divider su-divider-style-dashed\" style=\"margin:30px 0;border-width:8px;border-color:#009900\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-lightbulb-exclamation\"><\/i> Notes<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Can include the automated step &#8220;charging process&#8221; into the workflow. (No code)<ul><li>When the matter reaches, a charging request is automatically sent to the Stripe API.<\/li><li><a href=\"https:\/\/stripe.com\/docs\/api\/charges\" rel=\"nofollow\">https:\/\/stripe.com\/docs\/api\/charges<\/a><\/li><\/ul><\/li><li>A positive integer representing how much to charge in the smallest currency unit.<ul><li>e.g., &#8220;100&#8221; cents to charge $1.00<\/li><li>e.g., &#8220;100&#8221; to charge \\100 (a zero-decimal currency) (JPY)<\/li><li>&#8220;<code>#{#q_numUsdWithoutCent}<strong>00<\/strong><\/code>&#8221; is also possible if numerical data without auxiliary info<\/li><\/ul><\/li><li>If present, commas &#8220;,&#8221; and periods &#8220;.&#8221; are removed in advance.<ul><li>When using numeric data, be careful of the number of digits after the decimal point.<\/li><\/ul><\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-images\"><\/i> Capture<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-capture-en.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"675\" data-attachment-id=\"107301\" data-permalink=\"https:\/\/support.questetra.com\/en\/addons\/stripe-customer-charge-2021\/attachment\/stripe-customer-charge-2021-capture-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-capture-en.png?fit=1200%2C675&amp;ssl=1\" data-orig-size=\"1200,675\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"stripe-customer-charge-2021-capture-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-capture-en.png?fit=1024%2C576&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-capture-en.png?resize=1200%2C675&#038;ssl=1\" alt=\"Creates the Charge object on the payment platform Stripe to charge the Customer ID (cus_12345678901234) for any amount in any currency. If the charging process fails, Charge object is not created and error log such as expired_card is output.\" class=\"wp-image-107301\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-capture-en.png?w=1200&amp;ssl=1 1200w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-capture-en.png?resize=560%2C315&amp;ssl=1 560w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-capture-en.png?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-capture-en.png?resize=768%2C432&amp;ssl=1 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default q-box\"><a href=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-config-en.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1045\" height=\"1026\" data-attachment-id=\"107303\" data-permalink=\"https:\/\/support.questetra.com\/en\/addons\/stripe-customer-charge-2021\/attachment\/stripe-customer-charge-2021-config-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-config-en.png?fit=1045%2C1026&amp;ssl=1\" data-orig-size=\"1045,1026\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"stripe-customer-charge-2021-config-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-config-en.png?fit=642%2C630&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-config-en.png?resize=1045%2C1026&#038;ssl=1\" alt=\"Creates the Charge object on the payment platform Stripe to charge the Customer ID (cus_12345678901234) for any amount in any currency. If the charging process fails, Charge object is not created and error log such as expired_card is output.\" class=\"wp-image-107303\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-config-en.png?w=1045&amp;ssl=1 1045w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-config-en.png?resize=321%2C315&amp;ssl=1 321w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-config-en.png?resize=642%2C630&amp;ssl=1 642w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-config-en.png?resize=768%2C754&amp;ssl=1 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-book\"><\/i> Appendix<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Numeric parsing depends on JavaScript parseInt(x,10). (The prefix gives an error)<ul><li>See below for more information on available currency codes (JPY, USD, EUR, \u2026).<\/li><li><a href=\"https:\/\/stripe.com\/docs\/currencies\" rel=\"nofollow\">https:\/\/stripe.com\/docs\/currencies<\/a><\/li><\/ul><\/li><li>In case of USD, the minimum amount is $0.50 or equivalent.<ul><li>The amount value supports up to eight digits (e.g., for a USD charge of $999,999.99)<\/li><\/ul><\/li><li>Refer to the following for the error codes (ResponseCode other than 200).<ul><li><a href=\"https:\/\/stripe.com\/docs\/api\/errors\" rel=\"nofollow\">https:\/\/stripe.com\/docs\/api\/errors<\/a><\/li><\/ul><\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-balance-scale\"><\/i> See also<\/h3>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-questetra-support wp-block-embed-questetra-support\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"D9aRpMVx2k\"><a href=\"https:\/\/support.questetra.com\/en\/addons\/stripe-customer-create-2021\/\">Stripe: Customer, Create<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Stripe: Customer, Create&#8221; &#8212; Questetra Support\" src=\"https:\/\/support.questetra.com\/addons\/stripe-customer-create-2021\/embed\/#?secret=vLr4ckpQHr#?secret=D9aRpMVx2k\" data-secret=\"D9aRpMVx2k\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Creates the Charge object on the payment platform Stripe to charge the Customer ID (cus_12345678901234) for any amount in any currency. If the charging process fails, Charge object is not created and error log such as expired_card is output.<\/p>\n","protected":false},"author":2,"featured_media":107299,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_uag_custom_page_level_css":"","advanced_seo_description":"Creates the Charge object on the payment platform Stripe to charge the Customer ID (cus_12345678901234) for any amount in any currency. If the charging process fails, Charge object is not created and error log such as expired_card is output.","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"{title}\n\n{excerpt}\n\n{url}","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[168],"tags":[3167,404],"class_list":["post-107298","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-addons","tag-authsetting","tag-stripe-api"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?fit=1200%2C675&ssl=1","uagb_featured_image_src":{"full":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?fit=1200%2C675&ssl=1",1200,675,false],"thumbnail":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?resize=440%2C440&ssl=1",440,440,true],"medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?fit=560%2C315&ssl=1",560,315,true],"medium_large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?fit=768%2C432&ssl=1",768,432,true],"large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?fit=1024%2C576&ssl=1",1024,576,true],"1536x1536":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?fit=1200%2C675&ssl=1",1200,675,true],"2048x2048":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?fit=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-portrait-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?resize=900%2C675&ssl=1",900,675,true],"newspack-article-block-square-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?resize=800%2C600&ssl=1",800,600,true],"newspack-article-block-portrait-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?resize=600%2C675&ssl=1",600,675,true],"newspack-article-block-square-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?resize=800%2C675&ssl=1",800,675,true],"newspack-article-block-landscape-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?resize=600%2C450&ssl=1",600,450,true],"newspack-article-block-portrait-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?resize=450%2C600&ssl=1",450,600,true],"newspack-article-block-square-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?resize=600%2C600&ssl=1",600,600,true],"newspack-article-block-landscape-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?resize=400%2C300&ssl=1",400,300,true],"newspack-article-block-portrait-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?resize=300%2C400&ssl=1",300,400,true],"newspack-article-block-square-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?resize=400%2C400&ssl=1",400,400,true],"newspack-article-block-landscape-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?resize=200%2C150&ssl=1",200,150,true],"newspack-article-block-portrait-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?resize=150%2C200&ssl=1",150,200,true],"newspack-article-block-square-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?resize=200%2C200&ssl=1",200,200,true],"newspack-article-block-uncropped":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?fit=1200%2C675&ssl=1",1200,675,true]},"uagb_author_info":{"display_name":"IMAMURA, Genichi","author_link":"https:\/\/support.questetra.com\/en\/author\/imamuragenichi\/"},"uagb_comment_info":2,"uagb_excerpt":"Creates the Charge object on the payment platform Stripe to charge the Customer ID (cus_12345678901234) for any amount in any currency. If the charging process fails, Charge object is not created and error log such as expired_card is output.","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9DiIh-rUC","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":88658,"url":"https:\/\/support.questetra.com\/en\/addons\/stripe-charge-object-create\/","url_meta":{"origin":107298,"position":0},"title":"Stripe: Charge Object, Create","author":"IMAMURA, Genichi","date":"2020-06-03","format":false,"excerpt":"Creates the Charge object on the payment platform Stripe to charge the Customer ID (cus_12345678901234) for any amount in any currency. If the charging process fails, Charge object is not created and error log such as expired_card is output.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"Stripe: Charge Object, Create","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Charge-Object-Create-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Charge-Object-Create-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Charge-Object-Create-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Charge-Object-Create-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Charge-Object-Create-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":88772,"url":"https:\/\/support.questetra.com\/en\/addons\/stripe-charge-object-create-with-transfer-amount\/","url_meta":{"origin":107298,"position":1},"title":"Stripe: Charge Object, Create with Transfer Amount","author":"IMAMURA, Genichi","date":"2020-06-08","format":false,"excerpt":"Creates the Charge object with Transfer Amount to charge the Customer ID for any amount in any currency. Any Connected Account as the Transfer Destination, any Transfer Amount within the Charge amount are available. If fails, the object not created.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"Stripe: Charge Object, Create with Transfer Amount","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Charge-Object-Create-with-Transfer-Amount-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Charge-Object-Create-with-Transfer-Amount-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Charge-Object-Create-with-Transfer-Amount-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Charge-Object-Create-with-Transfer-Amount-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Charge-Object-Create-with-Transfer-Amount-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":67490,"url":"https:\/\/support.questetra.com\/en\/addons\/stripe-chargecreate\/","url_meta":{"origin":107298,"position":2},"title":"Stripe Charge to Customer ID","author":"Hirotaka NISHI","date":"2017-09-09","format":false,"excerpt":"From Customer ID, charge amount, currency code etc. stores Charge ID, last 4 digits of credit card number, status of registration process, communication log respectively into data items as billing record *Note It requires acquiring Secret Key at Stripe Dashboard in advance Supported cards or currency vary from country to\u2026","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/09\/stripe-charge-create-header.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/09\/stripe-charge-create-header.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/09\/stripe-charge-create-header.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/09\/stripe-charge-create-header.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/09\/stripe-charge-create-header.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":109829,"url":"https:\/\/support.questetra.com\/en\/addons\/stripe-customer-destination-charge-202107\/","url_meta":{"origin":107298,"position":3},"title":"Stripe: Customer, Destination Charge","author":"IMAMURA, Genichi","date":"2021-07-16","format":false,"excerpt":"Creates the Charge object with Transfer Amount to charge the Customer ID for any amount in any currency. Any Connected Account are available. If the primary payment method (Customer object) fails, the backup payment method will be charged. If all method fails, no Charge object will be created and an\u2026","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"Stripe: Customer, Destination Charge","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-destination-charge-2021-workflow-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-destination-charge-2021-workflow-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-destination-charge-2021-workflow-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-destination-charge-2021-workflow-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-destination-charge-2021-workflow-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":88665,"url":"https:\/\/support.questetra.com\/ja\/addons\/stripe-charge-object-create\/","url_meta":{"origin":107298,"position":4},"title":"Stripe: \u8ab2\u91d1\u30aa\u30d6\u30b8\u30a7\u30af\u30c8, \u751f\u6210","author":"IMAMURA, Genichi","date":"2020-06-03","format":false,"excerpt":"\u6c7a\u6e08\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0Stripe\u4e0a\u306b \"\u8ab2\u91d1\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\" \u3092\u751f\u6210\u3057\u307e\u3059\u3002Stripe\u4e0a\u306eCustomerID\uff08cus_12345678901234\uff09\u306b\u5bfe\u3057\u3066\u3001\u4efb\u610f\u306e\u8ab2\u91d1\u984d\u3092\u4efb\u610f\u306e\u8ab2\u91d1\u901a\u8ca8\u30b3\u30fc\u30c9\u3067\u8ab2\u91d1\u3057\u307e\u3059\u3002\u8ab2\u91d1\u51e6\u7406\u304c\u5931\u6557\u3057\u305f\u5834\u5408\u306f\u3001\u8ab2\u91d1\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u751f\u6210\u3055\u308c\u305a\u3001expired_card \u306a\u3069\u306e\u30a8\u30e9\u30fc\u30ed\u30b0\u51fa\u529b\u3055\u308c\u307e\u3059\u3002","rel":"","context":"In &quot;\u30a2\u30c9\u30aa\u30f3&quot;","block_context":{"text":"\u30a2\u30c9\u30aa\u30f3","link":"https:\/\/support.questetra.com\/ja\/category\/addons\/"},"img":{"alt_text":"Stripe: \u8ab2\u91d1\u30aa\u30d6\u30b8\u30a7\u30af\u30c8, \u751f\u6210","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Charge-Object-Create-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Charge-Object-Create-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Charge-Object-Create-ja.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Charge-Object-Create-ja.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Charge-Object-Create-ja.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":109830,"url":"https:\/\/support.questetra.com\/en\/addons\/stripe-customer-charge-202107\/","url_meta":{"origin":107298,"position":5},"title":"Stripe: Customers, Charge","author":"IMAMURA, Genichi","date":"2021-07-16","format":false,"excerpt":"Creates the Charge object on the payment platform Stripe. If the primary payment method (Customer object) fails, the backup payment method will be charged. If all method fails, no Charge object will be created and an Abended Error log will be output.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"Stripe: Customer, Charge","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/06\/stripe-customer-charge-2021-workflow-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"amp_enabled":false,"_links":{"self":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/107298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/comments?post=107298"}],"version-history":[{"count":5,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/107298\/revisions"}],"predecessor-version":[{"id":109860,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/107298\/revisions\/109860"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media\/107299"}],"wp:attachment":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media?parent=107298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/categories?post=107298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/tags?post=107298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}