Add PayPal button to Home for new member subscriptions
This commit is contained in:
+54
-1
@@ -1,6 +1,6 @@
|
||||
import React, { useState, useEffect, useReducer } from 'react';
|
||||
|
||||
export function PayPal(props) {
|
||||
export function PayPalPayNow(props) {
|
||||
const { amount, custom, name } = props;
|
||||
|
||||
return (
|
||||
@@ -24,3 +24,56 @@ export function PayPal(props) {
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export function PayPalSubscribe(props) {
|
||||
const { amount, custom, name } = props;
|
||||
|
||||
return (
|
||||
<div className='paypal-container'>
|
||||
<form action='https://www.paypal.com/cgi-bin/webscr' method='post' target='_top'>
|
||||
<input type='hidden' name='cmd' value='_xclick-subscriptions' />
|
||||
<input type='hidden' name='business' value='info@protospace.ca' />
|
||||
<input type='hidden' name='lc' value='US' />
|
||||
<input type='hidden' name='item_name' value={name} />
|
||||
<input type='hidden' name='no_note' value='1' />
|
||||
<input type='hidden' name='src' value='1' />
|
||||
<input type='hidden' name='a3' value={amount} />
|
||||
<input type='hidden' name='custom' value={custom} />
|
||||
<input type='hidden' name='p3' value='1' />
|
||||
<input type='hidden' name='t3' value='M' />
|
||||
<input type='hidden' name='currency_code' value='CAD' />
|
||||
<input type='hidden' name='bn' value='PP-SubscriptionsBF:btn_subscribeCC_LG.gif:NonHostedGuest' />
|
||||
<input type='image' src='https://www.paypalobjects.com/en_US/i/btn/btn_subscribeCC_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' />
|
||||
</form>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export function PayPalSubscribeDeal(props) {
|
||||
const { amount, custom, name } = props;
|
||||
|
||||
return (
|
||||
<div className='paypal-container'>
|
||||
<form action='https://www.paypal.com/cgi-bin/webscr' method='post' target='_top'>
|
||||
<input type='hidden' name='cmd' value='_xclick-subscriptions' />
|
||||
<input type='hidden' name='business' value='info@protospace.ca' />
|
||||
<input type='hidden' name='lc' value='US' />
|
||||
<input type='hidden' name='item_name' value={name}/>
|
||||
<input type='hidden' name='no_note' value='1' />
|
||||
<input type='hidden' name='a1' value={amount * 2} />
|
||||
<input type='hidden' name='p1' value='3' />
|
||||
<input type='hidden' name='t1' value='M' />
|
||||
<input type='hidden' name='src' value='1' />
|
||||
<input type='hidden' name='a3' value={amount} />
|
||||
<input type='hidden' name='custom' value={custom} />
|
||||
<input type='hidden' name='p3' value='1' />
|
||||
<input type='hidden' name='t3' value='M' />
|
||||
<input type='hidden' name='currency_code' value='CAD' />
|
||||
<input type='hidden' name='bn' value='PP-SubscriptionsBF:btn_subscribeCC_LG.gif:NonHostedGuest' />
|
||||
<input type='image' src='https://www.paypalobjects.com/en_US/i/btn/btn_subscribeCC_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' />
|
||||
</form>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user