Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jackbravo
Created August 30, 2017 23:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jackbravo/b242f0840c2271ad70e3b49f38b25e23 to your computer and use it in GitHub Desktop.
Save jackbravo/b242f0840c2271ad70e3b49f38b25e23 to your computer and use it in GitHub Desktop.
$type_manager = \Drupal::entityTypeManager()->getStorage('commerce_payment');
$payments = $type_manager->loadByProperties(['remote_id' => 'LTCL000016']);
$payment = reset($payments);
$payment->state = 'pending';
$payment->save();
@jackbravo
Copy link
Author

jackbravo commented Aug 30, 2017

http -a drupal:drupal http://127.0.0.1:8088/payment/notify/pagos_net usuario=wsltprueba clave=Wsltprueba123 codigoEmpresa=334 transaccion=P codigoRecaudacion=LTCL000016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment