better-payment / bp-plugin-shopware6-api2

Shopware 6 Plugin for Better Payment API2
Other
0 stars 0 forks source link

[Feature] Postback checksum verification with incoming_key #45

Closed gadimbaylisahil closed 1 year ago

gadimbaylisahil commented 1 year ago

Description

Incoming postbacks from Better Payment includes a field called checksum. We should take the body of the request we receive(without checksum), calculate the checksum and compare it with the checksum we received.

If checksums don't match, no updates should happen.

Requirements

Checksum calculation is described over https://dashboard.betterpayment.de/docs/#checksum-legacy. HOWEVER, use incoming_key instead of outgoing_key as mentioned in the docs.