Awight has uploaded a new change for review.
https://gerrit.wikimedia.org/r/249334
Change subject: Add test message fixtures for the fredge queue
......................................................................
Add test message fixtures for the fredge queue
Change-Id: Ic0f0b9aeb8419f95d67f523603193fb3155af7c2
---
A sites/all/modules/queue2civicrm/fredge/test/data/payments-antifraud.json
A sites/all/modules/queue2civicrm/fredge/test/data/payments-init.json
2 files changed, 41 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm
refs/changes/34/249334/1
diff --git
a/sites/all/modules/queue2civicrm/fredge/test/data/payments-antifraud.json
b/sites/all/modules/queue2civicrm/fredge/test/data/payments-antifraud.json
new file mode 100644
index 0000000..8eabffb
--- /dev/null
+++ b/sites/all/modules/queue2civicrm/fredge/test/data/payments-antifraud.json
@@ -0,0 +1,25 @@
+{
+ "validation_action": "process",
+ "risk_score": "0.3",
+ "score_breakdown": {
+ "initial": "0",
+ "getCVVResult": "0.2",
+ "getAVSResult": "0",
+ "getScoreCountryMap": "0",
+ "getScoreUtmCampaignMap": "0",
+ "getScoreEmailDomainMap": "0",
+ "minfraud_filter": "0.10",
+ "IPVelocityFilter": "0"
+ },
+ "php-message-class":
"SmashPig\CrmLink\Messages\DonationInterfaceAntifraud",
+ "user_ip": "1.2.3.4",
+ "freeform": "1",
+ "gateway_txn_id": "",
+ "correlation-id": "testgateway-28713751.0",
+ "date": "1445990975",
+ "server": "testpayments1001",
+ "gateway": "testgateway",
+ "contribution_tracking_id": "28713751",
+ "order_id": "28713751.0",
+ "payment_method": "cc"
+}
diff --git
a/sites/all/modules/queue2civicrm/fredge/test/data/payments-init.json
b/sites/all/modules/queue2civicrm/fredge/test/data/payments-init.json
new file mode 100644
index 0000000..d586a02
--- /dev/null
+++ b/sites/all/modules/queue2civicrm/fredge/test/data/payments-init.json
@@ -0,0 +1,16 @@
+{
+ "php-message-class":
"SmashPig\\CrmLink\\Messages\\DonationInterfaceFinalStatus",
+ "contribution_tracking_id": "12345",
+ "gateway": "testgateway",
+ "order_id": "",
+ "gateway_txn_id": "",
+ "validation_action": "process",
+ "payments_final_status": "complete",
+ "payment_method": "paypal",
+ "payment_submethod": "",
+ "country": "IT",
+ "amount": "2.00",
+ "currency_code": "EUR",
+ "server": "testpayments1002",
+ "date": "1445990999"
+}
--
To view, visit https://gerrit.wikimedia.org/r/249334
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic0f0b9aeb8419f95d67f523603193fb3155af7c2
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm
Gerrit-Branch: master
Gerrit-Owner: Awight <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits