Created
August 30, 2017 23:33
-
-
Save jackbravo/b242f0840c2271ad70e3b49f38b25e23 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$type_manager = \Drupal::entityTypeManager()->getStorage('commerce_payment'); | |
$payments = $type_manager->loadByProperties(['remote_id' => 'LTCL000016']); | |
$payment = reset($payments); | |
$payment->state = 'pending'; | |
$payment->save(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http -a drupal:drupal http://127.0.0.1:8088/payment/notify/pagos_net usuario=wsltprueba clave=Wsltprueba123 codigoEmpresa=334 transaccion=P codigoRecaudacion=LTCL000016