| @@ 289-299 (lines=11) @@ | ||
| 286 | * @param object $order |
|
| 287 | * @param object $source_object |
|
| 288 | */ |
|
| 289 | public function save_instructions( $order, $source_object ) { |
|
| 290 | $data = array( |
|
| 291 | 'amount' => $source_object->bitcoin->amount, |
|
| 292 | 'address' => $source_object->bitcoin->address, |
|
| 293 | 'uri' => $source_object->bitcoin->uri, |
|
| 294 | ); |
|
| 295 | ||
| 296 | $order_id = WC_Stripe_Helper::is_pre_30() ? $order->id : $order->get_id(); |
|
| 297 | ||
| 298 | update_post_meta( $order_id, '_stripe_bitcoin', $data ); |
|
| 299 | } |
|
| 300 | ||
| 301 | /** |
|
| 302 | * Process the payment |
|
| @@ 277-287 (lines=11) @@ | ||
| 274 | * @param object $order |
|
| 275 | * @param object $source_object |
|
| 276 | */ |
|
| 277 | public function save_instructions( $order, $source_object ) { |
|
| 278 | $data = array( |
|
| 279 | 'amount' => $order->get_formatted_order_total(), |
|
| 280 | 'entity' => $source_object->multibanco->entity, |
|
| 281 | 'reference' => $source_object->multibanco->reference, |
|
| 282 | ); |
|
| 283 | ||
| 284 | $order_id = WC_Stripe_Helper::is_pre_30() ? $order->id : $order->get_id(); |
|
| 285 | ||
| 286 | update_post_meta( $order_id, '_stripe_multibanco', $data ); |
|
| 287 | } |
|
| 288 | ||
| 289 | /** |
|
| 290 | * Creates the source for charge. |
|