Paypal Button For Google Chrome Extension

后端 未结 3 1113
一整个雨季
一整个雨季 2020-12-30 12:28

I\'m attempting to add a donate button (because I like money) to my google chrome extension. I\'m having trouble with it because the Chrome extension tries to open the paypa

相关标签:
3条回答
  • 2020-12-30 12:46

    Instead of:

    <form action="chrome.tabs.create ({'url': 'https://www.paypal.com/cgi-bin/webscr'});" method="post">
    

    Try:

    <form action="https://www.paypal.com/cgi-bin/webscr" target="_blank" method="post">
    
    0 讨论(0)
  • 2020-12-30 12:51

    To add on to PayPal_Robert: If you still want the PayPal donate image linked in there, try:

    <a target='_blank' href='https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=xxxxxxxx'>
      <image src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0">
    </a>
    

    Just change the hosted_button_id parameter to your own.

    0 讨论(0)
  • 2020-12-30 12:54

    Try a link instead of a form: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=xxxxxxx

    0 讨论(0)
提交回复
热议问题