PC Pusher 5.1 En

Материал из PayControl Wiki
Версия от 17:22, 11 мая 2022; D.bizyukov (обсуждение | вклад) (Entering authentication data for sending push notifications)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

Entering authentication data for sending push notifications

В работе
Предупреждение! For non-PostgreSQL DBMS, change the sequence method


For MSSQL you need to use a string NEXT VALUE FOR pc_split_pusher_creds_seq, instead of string nextval('pc_split_pusher_creds_seq'),.

For Oracle you need to use a string pc_split_pusher_creds_seq.NEXTVAL, instead of string nextval('pc_split_pusher_creds_seq'),.

To the PayConfirm app

To enter authentication data for sending push notifications to the PayConfirm application, you must perform the following queries to the PC Pusher database, replacing the %SYSTEMID% values with the correct one.

Note that the percent signs need to be removed. After executing the requests, you need to restart the PC Pusher Wildfly server.

Example for СУБД PostgreSQL:

INSERT INTO pc_split_pusher_credentials (
id,
appid,
credentials,
os,
systemid)
VALUES (
nextval('pc_split_pusher_creds_seq'),
'org.payconfirm.app',
'{"google_api_key":"AAAA4H70m7M:APA91bFsaPiXXiIuRyj4h-xGZpyd0-I3B9F1udIIergxaK8uL9vPPvUQXOvPfau2w8E-xur_6TlTzmhb2JsO13hBCxVDrNybD6Rj8k4hZKXfs7tC5fnJuWmCIB3-O_4dLo0QHlhfSbGn"}',
'Android',
'%SYSTEMID%');

INSERT INTO pc_split_pusher_credentials (
id,
appid,
credentials,
os,
systemid)
VALUES (
nextval('pc_split_pusher_creds_seq'),
'org.payconfirm.app',
'{"apns_key_file":"C:\\wildfly\\safetech-apns-JVBQX52N5Z.p8","apns_key_id":"QCC684AGC4","apns_team_id":"B98K5P3YHV"}',
'iOS',
'%SYSTEMID%');

To another mobile app

To enter authentication data for sending push notifications, you need to make a request to the PC Pusher database, replacing the value %SYSTEMID%, %appid%, %key file path%, %apns_key_id%, %apns_team_id%, %google_api_key% with the correct ones. (this data, with the exception of %SYSTEMID%, can be obtained from the owners of the account under whose name the application is published), and deleting the percent signs:

Example for СУБД PostgreSQL:

INSERT INTO pc_split_pusher_credentials (
id,
appid,
credentials,
is_default,
os,
systemid)
VALUES (
nextval('pc_split_pusher_creds_seq'),
'%appid%',
'{"google_api_key":"%google_api_key%"}',
1,
'Android',
'%SYSTEMID%');

INSERT INTO pc_split_pusher_credentials (
id,
appid,
credentials,
is_default,
os,
systemid)
VALUES (
nextval('pc_split_pusher_creds_seq'),
'%appid%',
'{"apns_key_file":"%key file path%","apns_key_id":"%apns_key_id%","apns_team_id":"%apns_team_id%"}',
1,
'iOS',
'%SYSTEMID%');

commit;