Permalink
Switch branches/tags
Nothing to show
Find file
dc74d87 Jun 26, 2012
31 lines (25 sloc) 954 Bytes
<?php
require_once( 'functions.php' );
if( ! isset( $_GET['profile_id'] ) )
die( 'Cancelling a Profile Requires a profile_id specified in the URL ($_GET)' );
$action = isset( $_GET['action'] ) ? $_GET['action'] : 'Suspend';
?>
<html>
<head>
<title>Cancel PayPal Recurring Payment Profile</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div class="container" style="width: 550px;">
<?php $paypal = create_example_subscription(); ?>
<?php $response = $paypal->manage_subscription_status( $_GET['profile_id'], $action ); ?>
<?php error_log('$response = ' . print_r( $response, true ) ); ?>
<h2>PayPal Subscription Management Response</h2>
<pre>
$paypal->manage_subscription_status( $_GET['profile_id'], '<?php echo $action; ?>' ) ) =
<?php print_r( $response ); ?>
</pre>
<p><a href="<?php echo get_script_uri(); ?>" target="_top">Return to Examples Overview &raquo;</a></p>
<div>
</body>
</html>