Skip to main content

Questions tagged [payments]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
30 views

Coinbase API/SDK for converting USD to USDC without fees

I want to use some API/SDK of Coinbase in my dapp for converting USD to USDC (buying USDC) without fees in Polygon network, like on Coinbase web-site. But that should be handled without creating a ...
Anastasia Martyniuk's user avatar
0 votes
1 answer
40 views

Payment Gateway for USDT payment

I have come across a few crypto-payment providers offering USDT payment solutions. Basically, they generate a new wallet address for each transaction and let a user make a USDT deposit within a ...
Kai's user avatar
  • 1
0 votes
0 answers
13 views

Simple (app) way to send payment request to an address

I am sorry for the lame question, but I am a bit lost here. Background: My wife got scammed off of 2 ETH. We can see the transaction at: etherscan.io and the address the ETH went to. I know that: ...
marfi's user avatar
  • 101
0 votes
1 answer
29 views

How to cut commission from the transaction with minimal amount of fees

I'm trying to build a crypto payment provider, and would like to cut a commission and keep the fees minimal on my customer consider the transaction is from address A (the buyer) to address B (the ...
Ahmed Mohsen's user avatar
1 vote
2 answers
342 views

How to make payment gateway and confirm from transaction hash

I am looking for a payment solution for my website using crypto. I have seen some websites that display a modal with a QR code and a recipient address. I wonder how they know if someone has deposited ...
Peter Jack's user avatar
2 votes
0 answers
281 views

How can I create a one-off address to receive a USDT payment on the BSC or MATIC network?

I want people on my Node.js website to be able to buy my products with USDT, so I'm trying to set it up with web3.js. When users want to make a payment, I want them to select a network (such as BSC or ...
Dunskie Ogorskie's user avatar
1 vote
0 answers
92 views

Split payment for ERC20 transfers between user owned wallets

I am trying to create a solution that charges a processing fee when ERC20 payments go from user to user on our platform. I don't control the ERC20 token so I can't implement anything on that contract. ...
John's user avatar
  • 11
1 vote
0 answers
302 views

Payment URL/metamask deeplink does not work for transferring USDT in Arbitrum network

I generated the following deeplink with https://metamask.github.io/metamask-deeplinks/# https://metamask.app.link/send/pay-0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9@42161/transfer?address=...
John's user avatar
  • 81
1 vote
1 answer
26 views

Crypto blog project using smart contracts as payment system and NFT's as access tokens for articles - am I doing it right?

I'm beginning my journey with blockchain and smart contracts. I want to create web application - blog or articles website. Each user will be able to write an article and save it. Every article will be ...
gmexo's user avatar
  • 111
0 votes
2 answers
69 views

Receiving payments from my clients on a website, and when each user is given his own address

I want to receive crypto-payments from my clients in such a way that they'll be able to send them to an address directly and from any type wallet they may have. Namely, I don't want to have them sign ...
Kum's user avatar
  • 75
1 vote
2 answers
71 views

Off-chain Bank Payments & oracles

hey fellow solidity devs ! i am working on a DAO right now and one of the requirements is that members pay the DAO with fiat money off-chain (using traditional banks). i obviously want to log that ...
ftank's user avatar
  • 13
0 votes
2 answers
873 views

function depositTokens doesnt work in remix ethereum , please help

error in remix: Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? Internal JSON-RPC error. { "code": 3, ...
levlups's user avatar
1 vote
1 answer
28 views

Paycheck contract keeps trying to send to a new random contract address/not working properly

I'm very new to Solidity and facing a dumb problem. I'm trying to create a contract that pays my employee Mike (ex). Here, withdraw() function worked as expected. It returns ETH to my wallet again ...
SushiGirl's user avatar
1 vote
1 answer
427 views

Ethernaut lvl1 : Fallback - how to set msg.value when calling contribute()?

I'm starting the ethernaut tutorial. At the level 1, I want to send some eth to a function named contribute. In the console, I type : await contract.contribute() Then I can't enter the amount in ...
Fabien's user avatar
  • 41
0 votes
2 answers
119 views

Automating Payments From Server Side To User

To all Ethereum Developers, I am currently working on a school project where my application involves users spinning a lucky wheel and getting rewarded with Ethereum. However, I am stuck with the ...
Porsche Tan's user avatar
0 votes
1 answer
31 views

How to accept Ethereum payments on a membership video streaming site?

What is the best way, or are there any regulated payment merchants besides BitPay, to accept recurring subscription fees in Ethereum, for example, on a video streaming site? Or would it be better to ...
user610620's user avatar
  • 1,528
0 votes
0 answers
101 views

Subscriptions - Recurring payments (Fiat to Crypto wallet)

I checked several platforms (BitPay, Stripe, Plaid etc..) but none seem to enable me to setup a recurring payment from fiat to a crypto wallet the same way you would do it on Netflix with your bank ...
ibox's user avatar
  • 61
3 votes
2 answers
774 views

Subscriptions - Recurring payments (EVM)

after reading these threads link 1, link 2 and link 3, I am a bit confused as why there is no way, on the EVM, to put in place recurring payments as it's such a predominant use case IRL (rent, ...
ibox's user avatar
  • 61
1 vote
1 answer
1k views

How to implement a withdraw function using call{value} and divide between accounts

This best practice recommends using something like: address private constant WALLET_A = 0xabcdabcdacbdbabskbkashda; function withdraw() public onlyOwner { (bool success, ) = WALLET_A.call{value: ...
user1087973's user avatar
0 votes
1 answer
66 views

Receiving ERC20 tokens as paymant inside my smart contracts

Is there a way to receive X amount of ERC20 tokens to transact certain methods inside my smart contracts? So let's say a mint method is payable and receives ether as a value instead, it requires the ...
Pequod's user avatar
  • 15
9 votes
2 answers
2k views

ERC721 NFT minting to accept custom ERC20 token as payment

When creating the contract for minting NFTs using the erc-721 standard, I want to be able to accept payment from my own erc-20 token instead of 'ETH'. How can this be accomplished?
Philitician's user avatar
0 votes
2 answers
28 views

How do I charge each user of my decentralized application a fee?

I'm just learning how to build a decentralized application, and I have one question. Suppose I want to charge each user a fee of 1 ETH to use the application. If they don't pay, they don't get to use ...
Montana Burr's user avatar
0 votes
0 answers
141 views

Best Practices For Splitting Payments

I have bulid a payment split flow. It is working and tested on Remix. I am using PaymentSplitter by OpenZeppelin and here's how it looks overall: However, I would really appreciate if I can get a ...
Syed Ali Taqi's user avatar
0 votes
0 answers
49 views

How to add availability to receive another tokens as a payment

I created some kind of nft marketplace, deployed to BSC. So gonna use BNB as a main payment. Please advise how to solve the following questions: How to add additional ERC20 token as a payment that is ...
JSrock's user avatar
  • 1
0 votes
1 answer
144 views

What is the best way to accept ether payment without using a third party payment service?

I am new in Ethereum blockchain technology. I wanted to make a payment gateway for accepting Ethereum. I ran ethereum rinkeby testnet on my local machine and tested Ether transfer to another wallet. I ...
Faysal Ahammed's user avatar
1 vote
0 answers
17 views

Possible Security Issues On Web Layer Payment Request and Confirmation

This is more likely a design consultation rather than an issue. I want to introduce additional standards in ISO20022 to promote crypto payment through common payment interface to eliminate 3rd party ...
donostack's user avatar
1 vote
1 answer
2k views

Is it possible to send ERC20 tokens, paying the gas fee from another account?

I'm building a crypto payment processor, and once of the "hindrances" is in moving ERC20 tokens around. For reference, the current payment pipeline looks as follows: User requests ETH ...
DGJMVBNKYT's user avatar
2 votes
3 answers
5k views

How to write a Solidity function that accepts ERC20 tokens as payment? [duplicate]

There is an ERC20 token (contract 1 - I do not own this.) and the tokens are being used to pay for a service in my services contract (Contract 2). I can easily send contract 1 tokens from the user ...
lopezdp's user avatar
  • 123
0 votes
1 answer
19 views

What would happen if I remove + from the line number 6?

pragma solidity ^0.8.1; contract SendMoneyExample{ uint public balanceRecived; function recivedMoney()public payable{ balanceRecived+=msg.value; } function getBalance()public ...
Akash's user avatar
  • 1
1 vote
1 answer
558 views

How to prevent user to change recipient address when MetaMask transaction window pops up?

I want to integrate MetaMask as one of payment methods on my website. The idea is to lock my content, when user made a successful ETH payment so the content will be revealed. This is the source code: &...
Sâu Bự's user avatar
0 votes
1 answer
36 views

How to make a smart contract which pays out only if a service is performed?

Hello I am new to the world of solidity. I am trying to create a smart contract with the following conditions: a customer wants to buy a service/product from a retailer (me). the price of my service (...
Federico Gentile's user avatar
0 votes
0 answers
32 views

Paying for gas (when the SC is executed) with money stored in a SC

I am starting to program my first real contract and would like to ask if it is possible to do this (something like an auction): Someone deploys a contract. Participants pay for that auction to run (...
Joncarre's user avatar
  • 281
0 votes
1 answer
255 views

What happens to royalty payments if NFT artist loses wallet?

when NFTs are minted, the creator/artist is registered in the smart contract as a recipient of all future royalty payments from secondary sales of their NFT. People lose wallets all the time: ...
user610620's user avatar
  • 1,528
5 votes
2 answers
3k views

Is there BTCPay Server for Ethereum?

BTCPay Server is a self-hosted, open-source cryptocurrency payment processor for Bitcoin. It also allows to add other crypto currencies like Litecoin, Monero. But is there a similar open-source ...
Kogelet's user avatar
  • 176
1 vote
1 answer
35 views

How can I ensure a player matches another player's bet?

First, I want someone to send a bet (money) to the contract. Then I want someone to match the original bet. (There are many more safety checks in the contract. I just removed them to keep this as ...
António Gonçalves's user avatar
0 votes
0 answers
592 views

How to implement crypto refunds in a smart contract?

I am quite new to cryptocurrencies and after some investigation I thought this might be the right place to ask. Problem: I have a small business and I would like to offer to my customers the option to ...
Federico Gentile's user avatar
1 vote
0 answers
929 views

How to Accept an ERC-20 token as Payment for a Product?

First of all, this question was asked before here: Accepting ERC-20 Tokens as payment but I want to see if a better way has been developed to accept ERC-20 for payment, so I'm asking again. To ...
Dobit's user avatar
  • 162
1 vote
1 answer
1k views

How to generate unique ETH deposit address for ecommerce or payment processor?

Example of a payment processor or an ecommerce website. I would like to generate unique ETH address for each transaction. I'm genuinely curious what is the the best way of doing it? Potential solution ...
Mars Robertson's user avatar
2 votes
3 answers
3k views

Accept USDT (Tether) for payment method in website

Is it able to use Binance API to accept USDT as a payment method on the website? For this purpose we need can generate a unique USDT address per order and can track it. If Binance is not a good ...
frank's user avatar
  • 21
2 votes
0 answers
1k views

Parity transaction tracing and how to determine transaction/call failure or success

I am currently working on a in-payment monitor system for Ethereum using the trace functionality in the Parity Ethereum Client. The reason I am using the trace functionality instead of just looking ...
ar undefined's user avatar
0 votes
2 answers
819 views

how to set an ether value as a function parameter?

I work on Truffle and my project is simple. contract A should transfer some ether to contract B. contract A is funded enough. In contract A, there is a function called payment that performs the ...
Alireza's user avatar
  • 567
0 votes
1 answer
30 views

I would like to setup ETH purchase by Visa/Pay-Pal on my webpage. How to do it?

As in title. The only option that I know is going to exchange websites and purchasing from those websites. Would there be a way to simply setup the payment option directly from my web-page ?
Damir Olejar's user avatar
0 votes
1 answer
102 views

What does this payment fragment mean?

I am trying to comprehend the following snippet of payment code: if (collectedFees >= minFeePayout) { if (!owner.send(collectedFees)) { // Potentially sending ...
lllllllllllll's user avatar
0 votes
0 answers
30 views

Understanding of this contract with no "funds transfer"

I am learning the functionality of the following contract: https://etherscan.io/address/0xb9955b00fb89456b1a0364cd392e81cd37f6bce8#code To my surprise, while there are some "transfer" statements ...
lllllllllllll's user avatar
1 vote
1 answer
124 views

Cryptocurrency payments in Centralized Architecture

I'm new to cryptocurrency, so not sure if I'm asking the right question on this... I want to develop a game with traditional centralized client/server architecture, probably java application server, ...
yogurt23's user avatar
0 votes
1 answer
52 views

How can i make payment application using the blockchain? [closed]

i want to make payment based application by scratch using blockchain, so where can i learn from scratch and what are the different component that i should learn to make an application or a website ...
bignums's user avatar
  • 107
0 votes
1 answer
68 views

An automatically gas payment [duplicate]

I’m a noob in smart contract development so I have a question. Is it possible to make that the smart contract itself can pay gas needed for executing? Or could I chose an address which should pay the ...
artem's user avatar
  • 13
0 votes
0 answers
41 views

how to send a payment transaction using web3js... and fetch contract address dynamically using web3js without hardcoding in app.js

function sendPayment(uint orderNumber) public payable{ //restricting only buyer of partitcular order can make payments require(Orders[orderNumber].buyerAddress==msg.sender); //checking ...
Rama krishna Manchala's user avatar
18 votes
2 answers
13k views

How much data can I store in a smart contract, what is the cost and how it is implemented?

If I suppose I use a smart contract as a database, how much data can I store? speaking only of strings and integers, save them in contract data structures does it cost in addition to the gas used for ...
Chaos's user avatar
  • 377
0 votes
0 answers
307 views

Pay for the users gas fee (ERC-721)

Is there a way for an NFT (ERC-721) so the contract creator pays for the gas fee when the user's trade tokens? Or add some sort of middleware CC payment so for the user that is not tech salvage not ...
Krister Johansson's user avatar