4 Replies - 683 Views - Last Post: 29 October 2015 - 10:54 AM

#1 jvbird20  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 31
  • Joined: 18-December 11

How to get paypal button to work on modal?

Posted 29 October 2015 - 10:14 AM

Hi
I am using Bootstrap

I need a paypal add to cart button to work even if its on a modal window<-correct me if I am using the wrong terminology please

I am using the code that comes from PayPal no SDK. Is it possible?

If so how? If not why?

This post has been edited by jvbird20: 29 October 2015 - 10:15 AM

Is This A Good Question/Topic? 0
  • +

Replies To: How to get paypal button to work on modal?

#2 no2pencil  Icon User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6595
  • View blog
  • Posts: 30,789
  • Joined: 10-May 07

Re: How to get paypal button to work on modal?

Posted 29 October 2015 - 10:15 AM

Why would the placement be any different?
Was This Post Helpful? 0
  • +
  • -

#3 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 4154
  • View blog
  • Posts: 13,146
  • Joined: 08-June 10

Re: How to get paypal button to work on modal?

Posted 29 October 2015 - 10:18 AM

a bootstrap isŚcode-wiseŚnothing different than just a couple of standard HTML elements on the current page. so there is no principal difference between a Paypal button on the modal or on the webpage elsewhere (frame elements excluded). the only difference may be that clicking such a button in a modal may (by intention) close the modal window.
Was This Post Helpful? 0
  • +
  • -

#4 jvbird20  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 31
  • Joined: 18-December 11

Re: How to get paypal button to work on modal?

Posted 29 October 2015 - 10:52 AM

Got it, but for some reason it won't allow me to

use php even if I added it prior to creating the button at paypal.com

 
<option value="<?php echo"this doesn't work"?>"> 1 Year Only $11.95 USD</option>




The button will direct to a paypal saying something is wrong

This post has been edited by jvbird20: 29 October 2015 - 10:53 AM

Was This Post Helpful? 0
  • +
  • -

#5 no2pencil  Icon User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6595
  • View blog
  • Posts: 30,789
  • Joined: 10-May 07

Re: How to get paypal button to work on modal?

Posted 29 October 2015 - 10:54 AM

Would need more content to further troubleshoot. Is this site viewable online? If not, can you provide more relevant code?

Also, are you using PayPal's API, the PayPal IPN, or just the PayPal one time button?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1