Enable support for PayPal white label payment

This commit is contained in:
Hillel Coren 2017-02-21 19:52:12 +02:00
parent 73ca48e381
commit 1487da3dc4
2 changed files with 2 additions and 3 deletions

View File

@ -2112,7 +2112,7 @@ $LANG = array(
'account_fields' => 'Company Fields', 'account_fields' => 'Company Fields',
'facebook_and_twitter' => 'Facebook and Twitter', 'facebook_and_twitter' => 'Facebook and Twitter',
'facebook_and_twitter_help' => 'Follow our feeds to help support our project', 'facebook_and_twitter_help' => 'Follow our feeds to help support our project',
'reseller_text' => 'Note: the white-label license is intended for personal use, please email us at :email if you\'d like to resell our app.', 'reseller_text' => 'Note: the white-label license is intended for personal use, please email us at :email if you\'d like to resell the app.',
'unnamed_client' => 'Unnamed Client', 'unnamed_client' => 'Unnamed Client',
'day' => 'Day', 'day' => 'Day',

View File

@ -84,8 +84,7 @@
} }
function buyProduct(affiliateKey, productId) { function buyProduct(affiliateKey, productId) {
window.open('{{ Utils::isNinjaDev() ? '' : NINJA_APP_URL }}/license?affiliate_key=' + affiliateKey + '&product_id=' + productId + '&return_url=' + window.location); window.open('{{ Utils::isNinjaDev() ? '' : NINJA_APP_URL }}/buy_now/?account_key=AsFmBAeLXF0IKf7tmi0eiyZfmWW9hxMT&product_id=' + productId + '&contact_key={{ Auth::user()->primaryAccount()->account_key }}' + '&return_url=' + window.location);
//window.open('{{ Utils::isNinjaDev() ? '' : NINJA_APP_URL }}/buy_now/?account_key={{ env('NINJA_LICENSE_ACCOUNT_KEY') }}&product_id=' + productId + '&contact_key={{ Auth::user()->primaryAccount()->account_key }}' + '&return_url=' + window.location);
} }
function showApplyLicense() { function showApplyLicense() {