Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sale note`s on anet CIM features #4

Open
JustinSainton opened this issue Jun 29, 2015 · 1 comment
Open

Add sale note`s on anet CIM features #4

JustinSainton opened this issue Jun 29, 2015 · 1 comment

Comments

@JustinSainton
Copy link
Member

Store errors/success messages for easier debugging.

wp-content\plugins\gold-cart\merchants\wpec_auth_net\classes\wpec_auth_net.class.php

Lines 600 - 604 and 609 - 613

            $purchase_log = new WPSC_Purchase_Log( $this->cart_data['session_id'], 'sessionid' );
            $purchase_log->set( array(
                'notes'      => 'Anet status: ' . $this->response->authorization_code,
            ) );
            $purchase_log->save();

609-613

            $purchase_log = new WPSC_Purchase_Log( $this->cart_data['session_id'], 'sessionid' );
            $purchase_log->set( array(
                'notes'      => 'Anet status: ' . $this->response->response_reason_text,
            ) );
            $purchase_log->save();
@JustinSainton
Copy link
Member Author

wpsc_add_purchase_meta( $this->purchase_id, 'anet_gateway_response_value', $this->response->response_reason_text, true);

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

No branches or pull requests

1 participant