How can I increase my erc20 token price? when I see BNB token from Etherscan, there I can see the price but my token price shows $0. How can i increase price?
When in Binacne platform, BNB token Buy and Sell happens, then the rate show's in Ethereum.Now my questions is, when in my token, in my website, buy/sell happens, then how can i push this price rate in Ethereum by web3.js.
Related
Is there an API for retrieving the current balance of my PayPal account? Is there a way I can securely query my PayPal account and retrieve the total balance in my account?
I want to do this to create a "we have x out of y for our monthly quota" type things.
The Transaction Search API has a method to check balances.
To use it, first enable the Transaction Search permission in your REST App settings.
If you requested an API access token in the 9 hours prior to enabling that permission, either terminate that access token or wait up to 9 hours for it to expire from cache.
I am gonna develop a hotel reservation site in which i have integrated paypal payment gateway. I wanna hold some additional money from user in respect of "If a person will reserve my hotel then it will have to pay some additional amount for the damages. if the user will not cause any damage to my hotel paypal will return this amount otherwise any damage occurs the money will not be returned to user. it will be paid to me". What is the paypal method that i can use in this scenario.
One common way to implement this kind of functionality is to use "Auth/Capture". In this case you initially Authorize an amount you want to charge and then at a later point in time you Capture (actually take) that amount of money, or a smaller or larger amount, or completely cancel it.
Note, although you don't actually receive the money until you Capture the payment, the end-user is usually unable to access that amount once it has been authorized.
https://developer.paypal.com/docs/classic/admin/auth-capture/
The service is for a digital option within the app but users are to be billed on a monthly basis, based on the activity they have actually made.
How do I make sure my app isn't rejected?
If you think to bill the user after the monthly usage of the service, you cannot do that. In App Purchase is a form of payment in advance, so you can ask the user to pay initially for a certain amount of service (e.g.: use the service for N hours) and then decrease the number of available amount until it reaches zero, after that the user will be requested to purchase a new amount of such a service to continue to use it and so on.
You can do that using In App Purchase "consumable" in apps. But the user should buy the items before and not after the usage of your service.
Of course nothing prevents you to give some "credit" to the user and then ask the user to pay back this credit using in app purchase. This is closer to what you need but of course nobody can prevent the user to delete and re-install the app to reset his/her credit.
Another possibility is for you to introduce in-app subscriptions: but they are based on time, so you can ask for 1-week or 1-month service, but you cannot control the amount of service used in this month (in theory you could add a monthly cap, but I'm not sure this would be accepted by Apple as the idea behind subscription is that you pay for full usage in the subscription period).
I’m building a site to be based in Australia and I have been researching into saving credit card numbers. Currently I have not had much luck with my questions. Paypal was of little help.
The site will run on many small transactions. I plan on using the paypal gateway to handle payment both via credit card and paypal accounts.
What I would like to do is retrieve user’s credit card details so they do not need to input them each time.
How I imagine this to work is that the first time a customer will input their credit card details to make the purchase. Once this purchase has been completed the site will receive a transaction ID from paypal. I then save this ID for future reference mapped to the users ID or email address.
So the next time the user wishes to make a purchase via their credit card I can forward this transaction ID to paypal and it can already have all the fields populated with their card details. Or display a screen with the last 4 digits or similar and ask the user if they wish to use this card again.
This is all assuming that the user does not have a paypal account.
Is this possible? Is there a better/more cost effective solution than this?
Your understanding isn't too far off. When you submit card details to PayPal (or any payment gateway) you should get back a token id. You would store that token id instead of the card details, then at any future point you wish to take payment you submit the token id (along with payment value etc)
By only storing the token value (and not the card details) you free yourself of most of the hassle with PCI compliance. PCI does allow you to store part of the card details in plain text (at most the first six and last four digits), so you could safely store these along with your token id. That would allow you to display these details and ask 'use this card again'
An example of this is documented at PayPal's site here:
https://developer.paypal.com/webapps/developer/docs/integration/direct/store-a-credit-card/
Is there any way currently for Paypal's API to send my site an authorization request before completing a user's payment?
I think the answer here would be that there is no way to do this, but one can set "authorization" as a cart parameter instead of "sale". This still leaves the question of how to complete the authorization in the callback.
May be this would clarify your doubt up to a certain extent.
Authorization & Capture starts when your buyer authorizes a payment amount during checkout.
For example, you can use the PayPal Express Checkout API with the PAYMENTACTION element set to Authorization or Order.
After your buyer completes checkout, you can then use the payment’s transaction ID with Authorization & Capture APIs. You can:
Capture either a partial amount or the full authorization amount.
Authorize a higher amount, up to 115% of the originally authorized amount (not to exceed an increase of $75 USD).
Void a previous authorization.