<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mah666hhh</author_name>
  <author_url>https://blog.hatena.ne.jp/mah666hhh/</author_url>
  <blog_title>スリ飯屋MaLankaのフリーエンジニアな日々</blog_title>
  <blog_url>https://www.malanka.org/</blog_url>
  <categories>
    <anon>技術関連</anon>
    <anon>技術関連 - Rails</anon>
  </categories>
  <description>３、StripeCheckout.configureで生成したオブジェクトから呼び出す、openメソッドの引数のキーにemailを指定し、２の値を設定する 決済する *** // JavaScript var handler = StripeCheckout.configure({ key: '', locale: 'auto', currency: 'jpy', panelLabel: &quot;9800円のお支払い&quot; allowRememberMe: false, token: function(token, arg) { document.getElementById('stripeToken').value = token.id; document.getElementById('stripeEmail').value = token.email; document.getElementById('payForm').submit(); } }); document.getElementById('pay-button').addEventListener('click', function(e){ // ２ const email = document.getElementById('user_email').value; handler.open({ name: 'name', description: '9800円', amount: document.getElementById(&quot;amount&quot;).value, email: document.getElementById('user_email').value // 3 }); e.preventDefault();</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.malanka.org%2Fentry%2F2021%2F03%2F08%2F212854&quot; title=&quot;【Stripe Rails】決済モーダル内のemailにJavaScriptで値を設定する - スリ飯屋MaLankaのフリーエンジニアな日々&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/m/mah666hhh/20210308/20210308212620.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-03-11 23:44:03</published>
  <title>【Stripe Rails】決済モーダル内のemailにJavaScriptで値を設定する</title>
  <type>rich</type>
  <url>https://www.malanka.org/entry/2021/03/08/212854</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
