$result = $this->callAPIAndDocument('payment_token', 'create', $this->params, __FUNCTION__, __FILE__, $description);
$this->assertEquals(1, $result['count']);
$this->assertNotNull($result['values'][$result['id']]['id']);
- $this->getAndCheck(array_merge($this->params, array( //your parameters here.
- $this->params
- )), $result['id'], 'payment_token', TRUE);
+ $this->getAndCheck(array_merge($this->params, array($this->params,)), $result['id'], 'payment_token', TRUE);
}
public function testGetPaymentToken() {
}
}
-
<comment>Possibly needed to store a unique identifier for this recurring payment order - if this is available from the processor??</comment>
<add>1.6</add>
</field>
+ <field>
+ <name>payment_token_id</name>
+ <title>Payment Token ID</title>
+ <type>int unsigned</type>
+ <comment>Optionally used to store a link to a payment token used for this recurring contribution.</comment>
+ <add>4.6</add>
+ </field>
+ <foreignKey>
+ <name>payment_token_id</name>
+ <table>civicrm_payment_token</table>
+ <key>id</key>
+ <add>4.6</add>
+ <onDelete>SET NULL</onDelete>
+ </foreignKey>
<field>
<name>trxn_id</name>
<title>Transaction ID</title>