File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ import { UB_BASE_URL } from "./constants";
5
5
6
6
type PaymentLink = {
7
7
clientId : string ;
8
- label ?: string ;
8
+ title ?: string ;
9
+ imageUrl ?: string ;
9
10
receiver : string ;
10
11
destinationToken : {
11
12
address : string ;
@@ -36,7 +37,8 @@ export async function getPaymentLink(props: {
36
37
const { data } = await res . json ( ) ;
37
38
return {
38
39
clientId : data . clientId ,
39
- label : data . label ,
40
+ title : data . title ,
41
+ imageUrl : data . imageUrl ,
40
42
receiver : data . receiver ,
41
43
destinationToken : data . destinationToken ,
42
44
amount : data . amount ? BigInt ( data . amount ) : undefined ,
Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ export default async function PayPage({
62
62
amount = { paymentLink . amount ? BigInt ( paymentLink . amount ) : undefined }
63
63
token = { token }
64
64
clientId = { paymentLink . clientId }
65
- name = { paymentLink . label }
65
+ name = { paymentLink . title }
66
+ image = { paymentLink . imageUrl }
66
67
theme = { theme }
67
68
/>
68
69
) ;
You can’t perform that action at this time.
0 commit comments