You are here

private static function Braintree_WebhookTesting::_sampleXml in Commerce Braintree 7

1 call to Braintree_WebhookTesting::_sampleXml()
Braintree_WebhookTesting::sampleNotification in braintree_php/lib/Braintree/WebhookTesting.php

File

braintree_php/lib/Braintree/WebhookTesting.php, line 15

Class

Braintree_WebhookTesting

Code

private static function _sampleXml($kind, $id) {
  $subjectXml = self::_subscriptionSampleXml($id);
  $timestamp = self::_timestamp();
  return "\n        <notification>\n            <timestamp type=\"datetime\">{$timestamp}</timestamp>\n            <kind>{$kind}</kind>\n            <subject>{$subjectXml}</subject>\n        </notification>\n        ";
}