There is another way to buy a NFT. You can also show a QR code on any page ! Once scanned via the Xact Wallet application, the end user will be able to process the payment.
Prerequisites:
Step 1: Get your NFT
Please Note that your NFT need to be on sale.
/* TokenId of the NFT */
$tokenId = '';
/* Account ID of the seller */
$sellerAccountId = '';
/* Custom uniq ID */
$uniqId = '';
/* NFT ID - is optional for old token */
$nftId = '';
$nft = $client->getNFTForSaleByTokenId([$tokenId, $uniqId, $sellerAccountId, $nftId]);