You are on page 1of 8

A30020160317

Version 3.0.0

7659
2016-03-02


..................................................................................................................3
....................................................................................................3
........................................................................................................3
1. 7659 ...................................................................4
2. ( )..........................................................................................5
2.1 ............................................ ....................................................5
2.2 .............................................................................................6
2.3 .....................................................................................6
3. .................................................................................................................7


1.
7659

2.
Java RSAnotify-java.zip
Php RSAnotify-php.zip

1. 7659
1.1

7659 http://open.7659.com/

PayID, AppKey,RSA

1.2

RUL URL

1.3
1.4

7659

2.

2.1
1
2
3 SDK
47659

2.2
2.2.1
7659 HTTP POST RSA
7659 RSA
7659 RSA

PHP Rsa::instance()->convert_publicKey($public_key_string) RSAnotify-php.zip

notify_data

String

RSA

notify_data=V/5/
3

99ubmARZ0uOT/KO

2.2.2

dealseq=20130219160809567&f

BrOdns/91mm23mA

ee=0.01&payresult=0

payresult 0 aaEQrD7+vIR7850Hx

GDvfvgJjhG36/R82Q

-1-2

03wZr7QcdIy2CGiE

dealseq

B+p5lgKDjU8FAQAj

fee

wLxqIWNT0T8ugdw

GiMI3pC/SKlY3I0m

RSA

KtoN78YNIgFLWA5

7659

QM0xSWvjls5p7hLbs

4cZz6Oe4=

orderid

String

7659

dealseq

String

orderid=1603141
71013184818151

uid

String

7659

dealseq=2013022
2105228127
uid 7659
guid

subject

String

subject=100

String

(=1.0)

sign

String

RSA

sign key

dealseq=20130222105

url

228127&notify_data=

V/5/99ubmARZ0uOT

RSAnoti
fy-php.zip

/KOBrOdns/91mm23

mAGDvfvgJjhG36/R

RSAnoti

82QaaEQrD7+vIR785

fy-java.zip

0Hx03wZr7QcdIy2C

GiEB+p5lgKDjU8FA
QAjwLxqIWNT0T8u

gdwGiMI3pC/SKlY3I

7659

0mKtoN78YNIgFLW

A5QM0xSWvjls5p7h

Lbs4cZz6Oe4=&orde

rid=130222-23-10523

450458&subject= 100
1

&uid=guid&v=1.0

2 notify_data
3
4

Step1:
url
notify_data RSA
RSA

PHP verify RSAnotify-php.zip


JavaRSASignature.doCheck() RSAnotify-java.zip

Step2: notify_data
RSA notify_data

PHP Rsa::instance()->publickey_decodeing($post_notify_data, $publicKey)


Java RSAEncrypt decrypt RSAnotify-java.zip
notify_data
payresult=0 0
dealseq=20130219160809567
fee=0.01

Step3:
dealseqfeeuid

@7659

Step4:

success
failed

2.3
3
1


Java PHP post

notify_data=E1r1P9qu0TA5uSK%2F3a%2FdOKCS%2BKA%2BgDgR92xRBJhGbZR8GK
cLOtdStwXVGZmPak1jbLIsxZlKATot7gZGPZaK7PadjgIhlmpjb7A2yZJQfsCaWTgO22Kluvz1
7TzULHXB8d4mSzlZq0uxARhTZaNUytemxBTJwAjdA9Zyk%2BTGeyk%3D&orderid=160304
102144174858772435&dealseq=1457084936262&uid=s56d95a1c14e05&subject=%E5%95%86
%E5%93%81%E5%90%8D%E7%A7%B0&v=1.0&sign=otOKJ9fZk1HmW3I1Do6iBdUfDjnKr
Nu48NNTVZ3JvT%2BKll9iwWv71LSok4Q4XXblXJFtd7u5ibu%2BEKFf2NeDjvsY4ICvt1mEJ
a5kyYyRWjLiPnhdkKgKX2EjIGj0GLYlhXAKkUeOh9mRmsbm%2BuozvQfkI6KBrAIwxDoH
MfwPZCM%3D

1. urldecode
2. sign base64decode
3. RSA
4. notify_data base64decode
5. RSA