Up to 50 percent off
Viewing 11 Topics - 16 through 26 (of 26 total)
Author Posts
April 13, 2014 at 9:36 am 18632
Rachelle Rachelle

Since it appears my url is still not generating a pay key and paypal said that’s where my problem was I dug in the plugin code and found this. Does this all look correct or should something be changed to make my site start generating a paykey with my orders so they will be valid?

/**
* Check if ipn request is valid or not
*
* @return boolean true/false
*/
function check_ipn_response() {

if ( ‘yes’ == $this->testmode ) {
$config = array(‘mode’ => ‘sandbox’);
} else {
$config = array(‘mode’ => ‘live’);
}

$ipnMessage = new PPIPNMessage( null, $config );

if ( $ipnMessage->validate() ) {

$this->add_log( ‘IPN Response: ‘ . print_r( $ipnMessage->getRawData(), true ) );

do_action( “dokan-valid-paypal-adaptive-request” );
} else {

$this->add_log( ‘Received invalid response from PayPal Adaptive Payment’ );

if ( is_wp_error( $ipnMessage ) ) {
$this->add_log( ‘Error response: ‘ . $ipnMessage->get_error_message() );
}
}
}

/**
* Do succesfull request…
*
* @return void
*/
function successful_request() {

$posted = $_POST;
$paykey = isset( $posted[‘pay_key’] ) ? $posted[‘pay_key’] : ”;

if ( !$paykey ) {
$this->add_log( __( ‘No pay key found, abort.’, ‘dokan-wc-pap’ ) );
exit;
}

$order_id = $this->get_order_by_paykey( $paykey );

if ( !$order_id ) {
$this->add_log( sprintf( __( ‘No order id found by pay key: %s’, ‘dokan-wc-pap’ ), $paykey ) );
exit;
}

$order = new WC_Order( $order_id );

// yet another check to make sure
if ( !isset( $order->id ) || empty( $order->id ) || absint( $order->id ) <= 0 ) { $this->add_log( sprintf( __( ‘No order found by pay key: %s’, ‘dokan-wc-pap’ ), $paykey ) );
exit;
}

April 13, 2014 at 7:49 pm 18671
Rachelle Rachelle

Here is the error log it gives me, how do I fix this? It says at the bottom the application is not authorized for the user but I’ve applied for all necessary items, been completely approved for parallel payments and inputted it all correctly, according to paypal. I think I may be missing something…

04-13-2014 @ 09:40:43 – Payment Process: parallel —— Reciever listArray
(
[0] => Receiver Object
(
[amount] => 6.65
[email] => classicpartydesigns@gmail.com
[phone] =>
[primary] =>
[invoiceId] =>
[paymentType] =>
[paymentSubType] =>
[accountId] =>
)

[1] => Receiver Object
(
[amount] => 0.35
[email] => admin@partypinwheel.com
[phone] =>
[primary] =>
[invoiceId] =>
[paymentType] =>
[paymentSubType] =>
[accountId] =>
)

)

04-13-2014 @ 09:40:44 – Payment Response: PayResponse Object
(
[responseEnvelope] => ResponseEnvelope Object
(
[timestamp] => 2014-04-13T06:40:44.176-07:00
[ack] => Failure
[correlationId] => 24155e4759650
[build] => 10273932
)

[payKey] =>
[paymentExecStatus] =>
[payErrorList] =>
[paymentInfoList] =>
[sender] =>
[defaultFundingPlan] =>
[warningDataList] =>
[error] => Array
(
[0] => ErrorData Object
(
[errorId] => 550006
[domain] => PLATFORM
[subdomain] => Application
[severity] => Error
[category] => Application
[message] => The application is not authorized for the user
[exceptionId] =>
[parameter] => Array
(
[0] => ErrorParameter Object
(
[name] =>
[value] => X-PAYPAL-APPLICATION-ID
)

April 13, 2014 at 7:54 pm 18672
Jay Jay

I found this and not sure if it helps. Are you using this API somewhere else?
http://premium.wpmudev.org/forums/topic/marketpress-issue-with-live-mode-550006-the-application-is-not-authorized-for-the-user

The reason you are getting this error is because the account you are using the API call headers is not the same as the PayPal account you used to submit the application. The APP-ID is provided for a single account only, you cannot use it on multiple accounts.

April 13, 2014 at 8:28 pm 18675
Rachelle Rachelle

I found that webpage when I did a general search for the code but this is a
newly created email just for this site. So the API and everything
generated from it is only used on this site. Could it be because my paypal
account is not verified yet because it is still confirming my bank account?
I plan on calling paypal again tonight with this error code.

On Sunday, April 13, 2014, weDevs Team wrote: > Jay wrote:

I found this and not sure if it helps. Are you using this API somewhere
else?

http://premium.wpmudev.org/forums/topic/marketpress-issue-with-live-mode-550006-the-application-is-not-authorized-for-the-user
[0]
>
> The reason you are getting this error is because the account you are
using

April 13, 2014 at 8:42 pm 18677
Jay Jay

Yes, it needs to be verified. I asked you earlier if it was…LOL. Just wait until the account becomes verified. 😛

April 13, 2014 at 8:43 pm 18678
Rachelle Rachelle

I think I’m trying to do too much…lol
Thank you Jay. 🙂

On Sunday, April 13, 2014, weDevs Team wrote: > Jay wrote:

Yes, it needs to be verified. I asked you earlier if it was…LOL. Just wait
until the account becomes verified. src=”
http://wedevs.com/wp-includes/images/smilies/icon_razz.gif&#8221; alt=”:P”
class=”wp-smiley”>

April 13, 2014 at 8:52 pm 18680
Jay Jay

My pleasure and it happens. I have overlooked the simple things as well. I think you should be set once it is approved.

April 15, 2014 at 7:49 am 18787
Rachelle Rachelle

Once my checking account was confirmed the adaptive paypal process worked without a hitch. I will mark this as resolved. 🙂

September 21, 2014 at 3:15 am 27100
Jamie Jamie This reply has been marked as private.
September 21, 2014 at 2:25 pm 27108
Sekander Badsha Sekander Badsha

Hello Jamie,
You did not have any seller other than admin. That is why PayPal was not getting the sellers email address. Please add 2 or more seller with PayPal mail address and the problem will be solved.

March 4, 2015 at 4:02 pm 38185
membie membie

Hello,

I am having the same problem and my account is verified.

Thanks 🙂

Viewing 11 Topics - 16 through 26 (of 26 total)