-
Notifications
You must be signed in to change notification settings - Fork 978
YPTWallet Usage
It is a virtual wallet that you can store some credits, to use on the YouPHPTube. you probably need some other plugins to be able to spend those credits.
This is quite interesting to avoid third parties fees.
On every manual request, the specified email on the configuration will be notified about the request.
This option is in case the site receives payment in other ways defined by the administrator.
In this case, when the user makes the payment he must notify the site that the payment was made. so the administrator can approve or cancel the request.
If the payment is approved, the credit is automatically added to the user's wallet.
When a user requests a withdrawal, the requested balance is automatically removed from the user wallet and the transaction will be pending on the user history.
If the Admin sets this history log to Cancel the credit will be refunded to the user, otherwise, the credit goes to the admin wallet.
IMPORTANT: We do not have the payment gateway withdrawal implemented yet. the withdrawal to PayPal or stripe is NOT automatic, you must do it manually.
You can have a donation button for all your publishers (VOD or live) that will use the wallet balance. to enable this option you have to check the option allowWalletDirectTransferDonation
on the CustomizeUser plugin
You can allow your users to create custom donation buttons for their content. to enable this option check the option UsersCanCustomizeWalletDirectTransferDonation
on CustomizeUser plugin
After enabling this you can setup up 8 different buttons, just go to My Account then click on the Donation Option tab
- decimalPrecision = The decimal precision of the currency you will use on your site
- wallet_button_title = The top button title;
- add_funds_text = The text that appear on the automatic add page (PayPal);
- add_funds_success_success = Text used in case of automatic add funds success;
- add_funds_success_cancel = Text used in case of automatic add funds cancel;
- add_funds_success_fail = Text used in case of automatic add funds fail;
- transfer_funds_text = Text used on the transfer page;
- transfer_funds_success_success = Text used in case of transfer funds success;
- transfer_funds_success_fail =Text used in case of transfer funds fail;
- withdraw_funds_text = Text used on withdraw page;
- withdraw_funds_success_success = Text used in case of withdrawing funds success;
- withdraw_funds_success_fail = Text used in case of withdrawing funds success;
- currency = Currency abbreviation (USD);
- currency_symbol = "$";
- addFundsOptions = an JSON array with the values options to add funds;
- showWalletOnlyToAdmin = check this in case you want only admin to see the wallet on the top;
- CryptoWalletName = Each user can add a Cryptocurrency wallet address, and that is the name we will label it;
- enableAutomaticAddFundsPage = Enable this in case you want to use PayPal;
- enableManualAddFundsPage = Enable this in case you want a manual add funds option (useful to use your own currency);
- manualAddFundsMenuTitle = The menu label;
- manualAddFundsPageButton = The confirm button label;
- manualAddFundsNotifyEmail = The email where we will notify the add funds request;
- manualAddFundsTransferFromUserId = The user ID that we will use to transfer funds in case an add funds request is approved;
- enableManualWithdrawFundsPage = Enable this in case you want a manual add to withdraw option (useful to use your own currency);
- withdrawFundsOptions = a JSON array with the values options to withdraw funds;
- manualWithdrawFundsMenuTitle = The menu label;
- manualWithdrawFundsPageButton = The confirm button label;
- manualWithdrawFundsNotifyEmail = The email where we will notify the withdraw funds request;
- manualWithdrawFundsTransferToUserId = The user ID that we will use to transfer funds in case a withdraw funds request is approved;
First, make sure you get the API keys from your PayPal and add them to the Plugin parameters
Go to the Paypal developer Site here (you must have a Paypal account, of course) Click on Create App on the right side of the page Choose the name of your app and click Create App Now you can see and manage everything including client ID and secret.
If you got the live API keys (NOT the test/sandbox)
check the disableSandbox
option
Enable PayPal payment on the YPTWallet plugin parameters
Payouts need to be enabled for the live environment. They work in the sandbox but until you actually go to the account status page and click on the link to enable it you will get the AUTHORIZATION_ERROR. It will ask you some questions. Answer them and get ready for them to email you back for a more complete description of how you are going to use their services. This can take a few days.
Make sure you check those options.