Skip to content

Commit 768e149

Browse files
committed
app card message
1 parent 73f9dfb commit 768e149

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

app.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,26 @@ public function __construct()
5252
"&amount=0.0001"."&trace=".Uuid::uuid4()->toString().
5353
"&memo=";
5454
$msgData = [
55-
'label' => "Pay 0.001 EOS",
56-
'color' => "#ABABAB",
57-
'action' => $payLink,
55+
'icon_url' => "https://mixin.one/assets/98b586edb270556d1972112bd7985e9e.png",
56+
'title' => "Pay 0.001 EOS",
57+
'description' => "pay",
58+
'action' => $payLink,
5859
];
5960
$msgParams = [
6061
'conversation_id' => $jsMsg->data->conversation_id,// $callTrait->config[client_id],
6162
// 'recipient_id' => $jsMsg->data->user_id,
62-
'category' => 'PLAIN_TEXT',
63+
'category' => 'APP_CARD',//'PLAIN_TEXT',
6364
'status' => 'SENT',
6465
'message_id' => Uuid::uuid4()->toString(),
65-
'data' => base64_encode("hello!"),//base64_encode(json_encode($msgData)),
66+
'data' => base64_encode(json_encode($msgData)),//base64_encode("hello!"),
6667
];
6768
$msgPayButton = [
6869
'id' => Uuid::uuid4()->toString(),
6970
'action' => 'CREATE_MESSAGE',
7071
'params' => $msgParams,
7172
];
7273
print_r($msgPayButton);
74+
print_r(json_encode($msgPayButton));
7375
$msg = new Frame(gzencode(json_encode($msgPayButton)),true,Frame::OP_BINARY);
7476
$conn->send($msg);
7577
}

0 commit comments

Comments
 (0)