Open cSarcasme opened 1 month ago
?????????????????????????????
i got same issue in but in other token i think the issue in handle spl token verification i will try to check source code if i found solution i will notify you
Even though I am having Same issue, Today i try to send usdc , iam getting signature , if i have to validate Transfer, my validation becoming fail
i have done that for usdc with other thing of solana/pay just for the verification.
I have done like that i have create a memo with a id different for each transction and i verify on the wallet where the money arrive if i have a transction with x amount an d a memo of that id and if i have it it i have he transaction and with that you can get the solscan and other thing and it is the payment is verify
@saikishore222
Description: When using Solana Pay to process payments in USDC, although the payment is successfully completed and the transaction appears on the blockchain, it is impossible to verify the transaction using the validateTransfer method. Verification works perfectly for payments made in SOL.
Affected Components: Client component that handles QR code generation and transaction verification API route that generates the QR code and initiates the payment API route that verifies the transaction Steps to Reproduce:
Select USDC as the payment currency. Generate the QR code and make a payment using the generated QR code. Attempt to verify the payment using the "Verify Transaction" button. Expected Behavior: The payment in USDC should be verified just like payments made in SOL.
Actual Behavior: The verification process fails for USDC payments, showing a "Transaction not found" error.
Client Code:
API Route for Generating QR Code and Payment:
API Route for Verifying Transaction:
Additional Context:
The issue only occurs with USDC payments. The QR code generation and payment processing work correctly, but the verification step fails. The transaction appears on the blockchain explorer, indicating that the payment is indeed completed.
Environment: Nextjs14 Solana Pay SDK version: last version Solana Blockchain endpoint: rpc quick node mainnet
Possible Causes:
There might be a discrepancy in how USDC payments are being handled or stored compared to SOL payments. The validateTransfer method might not be correctly configured for USDC SPL token transactions.