Fix for paypalButton component
This commit is contained in:
@@ -5,13 +5,14 @@ var NavigationStore = require('../../stores/navigationStore');
|
||||
|
||||
var Globals = require('../../globals');
|
||||
var Router = require('react-router');
|
||||
var PaypalButton = require('./paypalButton');
|
||||
|
||||
var PaymentSelect = React.createClass({
|
||||
render: function() {
|
||||
return (
|
||||
<div className="payment_select">
|
||||
<PaypalButton />
|
||||
</div>);
|
||||
<div className="payment_select">
|
||||
<PaypalButton />
|
||||
</div>);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -6,35 +6,35 @@ var NavigationStore = require('../../stores/navigationStore');
|
||||
var Globals = require('../../globals');
|
||||
var Router = require('react-router');
|
||||
|
||||
var PaymentSelect = React.createClass({
|
||||
var PaypalButton = React.createClass({
|
||||
render: function() {
|
||||
return (
|
||||
<div>
|
||||
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
|
||||
<input type="hidden" name="cmd" value="_xclick">
|
||||
<input type="hidden" name="business" value="W7GKS2Q9ZGLGY">
|
||||
<input type="hidden" name="lc" value="BA">
|
||||
<input type="hidden" name="item_name" value="Item name">
|
||||
<input type="hidden" name="item_number" value="555">
|
||||
<input type="hidden" name="amount" value="10.66">
|
||||
<input type="hidden" name="currency_code" value="EUR">
|
||||
<input type="hidden" name="button_subtype" value="services">
|
||||
<input type="hidden" name="no_note" value="0">
|
||||
<input type="hidden" name="cn" value="Napomena:">
|
||||
<input type="hidden" name="no_shipping" value="1">
|
||||
<input type="hidden" name="rm" value="1">
|
||||
<input type="hidden" name="return" value="https://www.ribica.ba/hvala_paypal">
|
||||
<input type="hidden" name="cancel_return" value="https://www.ribica.ba/odgodjeno">
|
||||
<input type="hidden" name="shipping" value="5.20">
|
||||
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted">
|
||||
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
|
||||
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
|
||||
<input name="notify_url" value="https://ribica.ba/api/payment_confirmation" type="hidden">
|
||||
</form>
|
||||
</div>
|
||||
);
|
||||
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
|
||||
<input type="hidden" name="cmd" value="_xclick" />
|
||||
<input type="hidden" name="business" value="W7GKS2Q9ZGLGY" />
|
||||
<input type="hidden" name="lc" value="BA" />
|
||||
<input type="hidden" name="item_name" value="Item name" />
|
||||
<input type="hidden" name="item_number" value="555" />
|
||||
<input type="hidden" name="amount" value="10.66" />
|
||||
<input type="hidden" name="currency_code" value="EUR" />
|
||||
<input type="hidden" name="button_subtype" value="services" />
|
||||
<input type="hidden" name="no_note" value="0" />
|
||||
<input type="hidden" name="cn" value="Napomena:" />
|
||||
<input type="hidden" name="no_shipping" value="1" />
|
||||
<input type="hidden" name="rm" value="1" />
|
||||
<input type="hidden" name="return" value="https://www.ribica.ba/hvala_paypal" />
|
||||
<input type="hidden" name="cancel_return" value="https://www.ribica.ba/odgodjeno" />
|
||||
<input type="hidden" name="shipping" value="5.20" />
|
||||
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted" />
|
||||
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" />
|
||||
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1" />
|
||||
<input name="notify_url" value="https://ribica.ba/api/payment_confirmation" type="hidden" />
|
||||
</form>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
module.exports = PaymentSelect;
|
||||
module.exports = PaypalButton;
|
||||
|
||||
Reference in New Issue
Block a user