More stripe integration #6649

Closed
mayeaux wants to merge 17 commits from more-stripe-integration into master
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 15e58156cc - Show all commits

View file

@ -199,8 +199,8 @@ export function CommentCreate(props: Props) {
Lbryio.call( Lbryio.call(
'customer', 'customer',
'tip', 'tip',
{ { // round to deal with floating point precision
amount: 100 * roundedAmount, // convert from dollars to cents amount: Math.round(100 * roundedAmount), // convert from dollars to cents
creator_channel_name: tipChannelName, // creator_channel_name creator_channel_name: tipChannelName, // creator_channel_name
creator_channel_claim_id: channelClaimId, creator_channel_claim_id: channelClaimId,
tipper_channel_name: activeChannelName, tipper_channel_name: activeChannelName,

View file

@ -273,8 +273,8 @@ function WalletSendTip(props: Props) {
Lbryio.call( Lbryio.call(
jessopb commented 2021-07-29 23:06:52 +02:00 (Migrated from github.com)
Review

We should try to move this component to /web at least. Ideally This is a function imported from lbryinc repo.

We should try to move this component to /web at least. Ideally This is a function imported from lbryinc repo.
'customer', 'customer',
'tip', 'tip',
{ { // round to fix issues with floating point numbers
amount: 100 * tipAmount, // convert from dollars to cents amount: Math.round(100 * tipAmount), // convert from dollars to cents
creator_channel_name: tipChannelName, // creator_channel_name creator_channel_name: tipChannelName, // creator_channel_name
creator_channel_claim_id: channelClaimId, creator_channel_claim_id: channelClaimId,
tipper_channel_name: sendAnonymously ? '' : activeChannelName, tipper_channel_name: sendAnonymously ? '' : activeChannelName,