Commit 1aeeb238 authored by ErikHommel's avatar ErikHommel
Browse files

remove test request from log

parent 999ceb89
......@@ -14,112 +14,7 @@ class CRM_Koalecttocivi_Page_KoalectLog extends CRM_Core_Page {
* @access public
*/
function run() {
$testParams = [
"message_name" => "export_transaction",
"amount" => 37,
"stripe_bank_account_id" => "STR5678",
"stripe_payout_id" => "a#h458_4468421k",
"stripe_payout_net" => 37,
"stripe_bank_reference" => "NL27TRIO7878651",
"total_fee" => NULL,
"should_arrive_at" => "2022-03-02T12:32:20.000Z",
"campaign_id" => "c39ac7c4-eb76-495a-9a4a-4f94c6e11282",
"campaign_name" => [
"en-GB" => "Verjaardagsacties voor Amnesty",
"fr-FR" => "Verjaardagsacties voor Amnesty",
"nl-NL" => "Verjaardagsacties voor Amnesty"
],
"category" => "donation",
"client_id" => "19accfa8-f729-4868-98eb-dbf133aa1d20",
"client_name" => "International Amnesty",
"created_at" => "2022-02-27T14:12:20.000Z",
"currency" => "EUR",
"customer" => [
"address" => [
"city" => "Brummen",
"line1" => "Prinses Beatrixlaan 5",
"line2" => NULL,
"state" => NULL,
"country" => "NL",
"latitude" => NULL,
"longitude" => NULL,
"postal_code" => "6971 GH",
"box" => NULL,
"number"=> NULL,
],
"avatar"=> [
"url" => NULL,
"small"=> [
"url" => NULL,
],
],
"birthday" => "1993-11-02",
"client_id" => "19accfa8-f729-4868-98eb-dbf133aa1d20",
"confirmed_at" => NULL,
"connector_name" => "Civi",
"deleted_at" => NULL,
"email" => "meindert@example.org",
"firstname" => "Meindert",
"iban" => "NL28TRIO7878586",
"is_koalect" => NULL,
"language" => "nl-NL",
"lastname" => "Het Paard",
"phone_number" => "06-5623564",
"transaction_id" => 772,
"subscription_id" => NULL,
"user_id" => "309987bf-08eb-4c15-96bf-bf88f3235zz1",
"newsletter" => FALSE,
"terms_of_use" => NULL,
"business_name" => NULL,
"business_vat" => NULL,
"gender" => "Female"
],
"is_subscription" => FALSE,
"is_subscription_active" => NULL,
"subscription_id" => NULL,
"payment_method" => "overschrijving",
"bank_statement" => "INTERNATIO T763",
"procedure_id" => "6a5f0c1b-e9ce-46f5-a763-60653e52abe8",
"procedure_name" => [
"en-GB"=>"Donation form",
"fr-FR"=>"Formulaire de don",
"nl-NL"=>"Donatieformulier",
],
"procedure_slug"=>"formulaire-de-don-ace64",
"terms_of_use" => TRUE,
"newsletter" => NULL,
"project_id" => "02c8f01e-bb90-4d82-ace1-f130b3d50cca",
"project_name" => "Maxime viert zijn verjaardag voor Amnesty",
"provider_ids"=> '{"charge_id"=>"py_1KWI91GkMJeTP5WJjUtSfbgi","source_id"=>"src_1KWI8vGkMJeTP5WJhaDThtvB", "redirect_url"=>"https://hooks.stripe.com/redirect/authenticate/src_1KWI8vGkMJeTP5WJhaDThtvB?client_secret=src_client_secret_JXD6RxchFpfkzAfaQtlIGGgv", "authorize_url"=>"https://hooks.stripe.com/redirect/authenticate/src_1KWI8vGkMJeTP5WJhaDThtvB?client_secret=src_client_secret_JXD6RxchFpfkzAfaQtlIGGgv", "balance_paid_out"=>false,"source_transfer_id"=>"tr_1KWI92GkMJeTP5WJEgne4k8H","balance_available_at"=>1646006400,"balance_transaction_id"=>"txn_1KWI92GkMJeTP5WJ6FwfWAKr","destination_payment_id"=>"py_1KWI922ezygk5LMsabGtcPvX"}',
"status" => "succeeded",
"target_id" => "02c8f01e-bb90-4d82-ace1-f130b3d50cca",
"target_name" => "Maxime viert zijn verjaardag voor Amnesty",
"target_type" => "Project",
"tax_receipt_requested" => FALSE,
"transaction_id" => 772,
"updated_at" => "2022-02-23T12:32:30.000Z",
"user_id" => "309987bf-08eb-4c15-96bf-bf88f3235zz1",
"external_reference" => NULL,
"connector_name" => "Civi",
"comment" => NULL,
"provider_name" => "stripe",
"procedure_category" => "donation",
"project_owner" => [
"email" => "test1@koalect.com",
"firstname" => "Test",
"lastname" => "Owner",
"id" => "0dd93ef2-8827-4c64-9176-00ab897cac8e",
],
];
$koalect = civicrm_api3('KoalectTransaction', 'create', $testParams);
CRM_Core_Error::debug('resultaat', $koalect);
exit();
$this->setPageConfiguration();
$this->setPageConfiguration();
$this->assign('logs', $this->getLogs());
parent::run();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment