@@ -52,24 +52,26 @@ public function __construct()
52
52
"&amount=0.0001 " ."&trace= " .Uuid::uuid4 ()->toString ().
53
53
"&memo= " ;
54
54
$ 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 ,
58
59
];
59
60
$ msgParams = [
60
61
'conversation_id ' => $ jsMsg ->data ->conversation_id ,// $callTrait->config[client_id],
61
62
// 'recipient_id' => $jsMsg->data->user_id,
62
- 'category ' => 'PLAIN_TEXT ' ,
63
+ 'category ' => 'APP_CARD ' , //' PLAIN_TEXT',
63
64
'status ' => 'SENT ' ,
64
65
'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!" ),
66
67
];
67
68
$ msgPayButton = [
68
69
'id ' => Uuid::uuid4 ()->toString (),
69
70
'action ' => 'CREATE_MESSAGE ' ,
70
71
'params ' => $ msgParams ,
71
72
];
72
73
print_r ($ msgPayButton );
74
+ print_r (json_encode ($ msgPayButton ));
73
75
$ msg = new Frame (gzencode (json_encode ($ msgPayButton )),true ,Frame::OP_BINARY );
74
76
$ conn ->send ($ msg );
75
77
}
0 commit comments