From e49b6b93d6e0f1a745aa95a0fec67973306721b7 Mon Sep 17 00:00:00 2001 From: "adam.harbas@a-net.ba" Date: Thu, 7 Jan 2016 08:58:37 +0100 Subject: [PATCH] Custom field with deliveryDestination object added to paypal button --- front-ui/app/components/cart/checkoutPage.js | 2 +- front-ui/app/components/payment/paymentSelect.js | 2 +- front-ui/app/components/payment/paypalButton.js | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/front-ui/app/components/cart/checkoutPage.js b/front-ui/app/components/cart/checkoutPage.js index 2b92b0d..d83ea6c 100644 --- a/front-ui/app/components/cart/checkoutPage.js +++ b/front-ui/app/components/cart/checkoutPage.js @@ -20,7 +20,7 @@ var CheckoutPage = React.createClass({ var choosePayment = (
- +
); diff --git a/front-ui/app/components/payment/paymentSelect.js b/front-ui/app/components/payment/paymentSelect.js index ea2e72f..22ed22d 100644 --- a/front-ui/app/components/payment/paymentSelect.js +++ b/front-ui/app/components/payment/paymentSelect.js @@ -11,7 +11,7 @@ var PaymentSelect = React.createClass({ render: function() { return (
- +
); } }); diff --git a/front-ui/app/components/payment/paypalButton.js b/front-ui/app/components/payment/paypalButton.js index 7adb253..93e29ee 100644 --- a/front-ui/app/components/payment/paypalButton.js +++ b/front-ui/app/components/payment/paypalButton.js @@ -8,7 +8,9 @@ var Router = require('react-router'); var PaypalButton = React.createClass({ render: function() { - return ( + var deliveryDestination = JSON.stringify(this.props.deliveryDestination); + + return (
@@ -30,6 +32,7 @@ var PaypalButton = React.createClass({ +
);